diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-04-24 13:18:32 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-04-24 13:18:39 +0200 |
commit | 5069eaed874dd1b3a8f03abce8ffeba45b3d7fb5 (patch) | |
tree | f9f2de25eddf9a52e44c54f0427cdb2808210f2d | |
parent | 4c5ac5605c0b5d49d24233e77affa18cf4866a2a (diff) |
Initial draft for nixos envs
-rw-r--r-- | data.d/etc-nixos/env/global.nix | 54 | ||||
-rw-r--r-- | data.d/etc-nixos/env/laptop.nix | 13 | ||||
-rw-r--r-- | data.d/etc-nixos/env/server.nix | 7 | ||||
-rw-r--r-- | data.d/etc-nixos/env/workstation.nix | 48 |
4 files changed, 122 insertions, 0 deletions
diff --git a/data.d/etc-nixos/env/global.nix b/data.d/etc-nixos/env/global.nix new file mode 100644 index 0000000..6ea9db4 --- /dev/null +++ b/data.d/etc-nixos/env/global.nix @@ -0,0 +1,54 @@ +{ config, pkgs, ... }: + +{ + boot = { + supportedFilesystems = [ "zfs" ]; + zfs = { + forceImportRoot = false; + }; + }; + + environment = { + systemPackages = with pkgs; [ + borgbackup + git + gnupg + jq + mosh + silver-searcher + tmux + vim + ]; + }; + + i18n = { + defaultLocale = "en_US.UTF-8"; + }; + + networking = { + domain = "tyil.net"; + }; + + services = { + openssh = { + enable = true; + }; + }; + + system = { + copySystemConfiguration = true; + }; + + time = { + timeZone = "Europe/Amsterdam"; + }; + + users = { + users = { + tyil = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + }; + }; + }; +} diff --git a/data.d/etc-nixos/env/laptop.nix b/data.d/etc-nixos/env/laptop.nix new file mode 100644 index 0000000..2681547 --- /dev/null +++ b/data.d/etc-nixos/env/laptop.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./workstation.nix + ]; + + environment = { + systemPackages = with pkgs; [ + acpi + ]; + }; +} diff --git a/data.d/etc-nixos/env/server.nix b/data.d/etc-nixos/env/server.nix new file mode 100644 index 0000000..b04af8d --- /dev/null +++ b/data.d/etc-nixos/env/server.nix @@ -0,0 +1,7 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./global.nix + ]; +} diff --git a/data.d/etc-nixos/env/workstation.nix b/data.d/etc-nixos/env/workstation.nix new file mode 100644 index 0000000..c8dcb29 --- /dev/null +++ b/data.d/etc-nixos/env/workstation.nix @@ -0,0 +1,48 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./global.nix + ]; + + environment = { + systemPackages = with pkgs; [ + # CLI programs + neomutt + notmuch + pass + plantuml + shellcheck + + # GUI utils + dunst + physlock + redshift + rofi + xclip + xcompmgr + xdotool + xprintidle + + # GUI programs + alacritty + chromium + feh + mpv + nextcloud-client + pavucontrol + qutebrowser + scrot + yt-dlp + zathura + ]; + }; + + users = { + users = { + tyil = { + extraGroups = [ "audio" "video" ]; + }; + }; + }; +} |