mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Relocated & split up darwin & nixos modules
I broke out host specific bits from the configuration that should be common to all hosts of a given type.
This commit is contained in:
parent
7d7a958da9
commit
067ab7a012
10 changed files with 243 additions and 220 deletions
110
modules/hosts/nixos/rainbow-planet/default.nix
Normal file
110
modules/hosts/nixos/rainbow-planet/default.nix
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
{ config, pkgs, ... }: let
|
||||
username = "gene";
|
||||
hostname = "rainbow-planet";
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot= {
|
||||
enable = true;
|
||||
consoleMode = "1";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# host specific apps
|
||||
boinc
|
||||
brightnessctl
|
||||
gnome.nautilus
|
||||
pavucontrol
|
||||
polkit-kde-agent
|
||||
ulauncher
|
||||
whalebird
|
||||
wmctrl
|
||||
|
||||
# common gui apps that really should be in another file
|
||||
firefox
|
||||
libreoffice
|
||||
meld
|
||||
slack
|
||||
tilix
|
||||
vivaldi
|
||||
xfce.xfce4-terminal
|
||||
zoom-us
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "${hostname}";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
nix.settings.allowed-users = [ "${username}" ];
|
||||
|
||||
programs = {
|
||||
_1password.enable = true;
|
||||
_1password-gui = {
|
||||
enable = true;
|
||||
# Certain features, including CLI integration and system authentication support,
|
||||
# require enabling PolKit integration on some desktop environments (e.g. Plasma).
|
||||
polkitPolicyOwners = [ "${username}" ];
|
||||
};
|
||||
hyprland.enable = true;
|
||||
|
||||
# common programs that really should be in another file
|
||||
# required for setting to be picked up by xfce4-terminal
|
||||
xfconf.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
boinc.enable = true;
|
||||
gnome.gnome-keyring.enable = true; # Provides secret storage
|
||||
gvfs.enable = true; # Used by Nautilus
|
||||
printing.enable = true; # Enable CUPS
|
||||
tailscale = {
|
||||
extraUpFlags = [
|
||||
"--ssh"
|
||||
];
|
||||
};
|
||||
xserver = {
|
||||
enable = true; # Enable the X11 windowing system.
|
||||
|
||||
# Configure keymap in X11
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
|
||||
displayManager = {
|
||||
gdm = {
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "Gene Liverman";
|
||||
extraGroups = [ "networkmanager" "wheel" "dialout" "input" ];
|
||||
packages = with pkgs; [
|
||||
tailscale-systray
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue