2021-11-09 12:55:06 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services = {
|
|
|
|
openssh.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
users.mutableUsers = false;
|
|
|
|
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
|
|
|
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
|
|
|
|
2021-12-04 02:45:41 +00:00
|
|
|
environment.etc =
|
|
|
|
builtins.listToAttrs (map
|
|
|
|
(name: { inherit name; value.source = "/nix/persist/etc/${name}"; })
|
|
|
|
[
|
|
|
|
"machine-id"
|
|
|
|
"NetworkManager/system-connections"
|
|
|
|
"ssh/ssh_host_ed25519_key"
|
|
|
|
"ssh/ssh_host_rsa_key"
|
|
|
|
]);
|
2021-11-09 12:55:06 +00:00
|
|
|
|
|
|
|
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"; };
|
2021-12-04 02:45:41 +00:00
|
|
|
}
|
|
|
|
// builtins.listToAttrs (map
|
|
|
|
(name: { inherit name; value = { device = "/nix/persist${name}"; noCheck = true; options = [ "bind" ]; }; })
|
|
|
|
[ "/var/log" ]);
|
2021-11-09 12:55:06 +00:00
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|