From 26370fc41016f0fd8fd7ef71b2f0a13c0a6f1d4f Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Tue, 9 Nov 2021 07:55:06 -0500 Subject: [PATCH] lenny: init --- hosts/x86_64-linux/lenny/default.nix | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 hosts/x86_64-linux/lenny/default.nix diff --git a/hosts/x86_64-linux/lenny/default.nix b/hosts/x86_64-linux/lenny/default.nix new file mode 100644 index 0000000..4b50906 --- /dev/null +++ b/hosts/x86_64-linux/lenny/default.nix @@ -0,0 +1,46 @@ +{ pkgs, ... }: +{ + services = { + openssh.enable = true; + }; + + users.mutableUsers = false; + users.users.root.passwordFile = "/nix/persist/shadow_sean"; + users.users.sean.passwordFile = "/nix/persist/shadow_sean"; + + environment.etc."NetworkManager/system-connections".source = + "/nix/persist/etc/NetworkManager/system-connections"; + + environment.persistence."/nix/persist" = { + directories = [ "/var/log" ]; + files = [ + "/etc/machine-id" + "/etc/ssh/ssh_host_ed25519_key.pub" + "/etc/ssh/ssh_host_ed25519_key" + "/etc/ssh/ssh_host_rsa_key.pub" + "/etc/ssh/ssh_host_rsa_key" + ]; + }; + + sconfig = { + gnome = true; + profile = "desktop"; + hardware = "physical"; + }; + + environment.systemPackages = [ pkgs.vmware-horizon-client ]; + + boot = { + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + }; + + fileSystems = { + "/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; }; + "/nix" = { device = "lenny/locker/nix"; fsType = "zfs"; }; + "/home" = { device = "lenny/locker/home"; fsType = "zfs"; }; + "/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; }; + }; + + system.stateVersion = "21.11"; +}