2023-12-21 06:38:32 +00:00
|
|
|
{ ... }:
|
2023-08-28 03:15:50 +00:00
|
|
|
let
|
|
|
|
persist = "/nix/persist";
|
|
|
|
in
|
2021-04-10 16:55:17 +00:00
|
|
|
{
|
|
|
|
sconfig = {
|
2021-09-07 02:36:43 +00:00
|
|
|
gnome = true;
|
2023-03-27 15:21:48 +00:00
|
|
|
desktop.enable = true;
|
2022-03-03 15:46:24 +00:00
|
|
|
horizon.enable = true;
|
2022-05-11 15:50:52 +00:00
|
|
|
wg-home.enable = true;
|
2021-04-10 16:55:17 +00:00
|
|
|
};
|
|
|
|
|
2023-08-28 03:15:50 +00:00
|
|
|
environment.etc.machine-id.source = "${persist}/machine-id";
|
2022-07-25 02:11:25 +00:00
|
|
|
|
2023-08-28 03:15:50 +00:00
|
|
|
environment.persistence."${persist}/system".directories = [
|
|
|
|
"/etc/NetworkManager/system-connections"
|
|
|
|
"/var/lib/bluetooth"
|
|
|
|
"/var/lib/nixos"
|
|
|
|
"/var/lib/systemd/coredump"
|
|
|
|
"/var/log/journal"
|
|
|
|
];
|
2022-07-25 02:11:25 +00:00
|
|
|
|
2022-09-03 02:53:25 +00:00
|
|
|
services.openssh.hostKeys = [
|
2023-08-28 03:15:50 +00:00
|
|
|
{ type = "ed25519"; path = "${persist}/ssh_host_ed25519_key"; }
|
2022-09-03 02:53:25 +00:00
|
|
|
];
|
2022-07-25 02:11:25 +00:00
|
|
|
|
|
|
|
users.mutableUsers = false;
|
2023-11-27 20:21:55 +00:00
|
|
|
users.users.sean.hashedPasswordFile = "${persist}/shadow_sean";
|
|
|
|
users.users.root.hashedPasswordFile = "${persist}/shadow_sean";
|
2022-07-25 02:11:25 +00:00
|
|
|
|
2021-04-10 16:55:17 +00:00
|
|
|
boot = {
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = false;
|
|
|
|
};
|
|
|
|
|
2022-06-17 17:06:41 +00:00
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
2021-04-10 16:55:17 +00:00
|
|
|
fileSystems = {
|
2021-10-10 08:21:36 +00:00
|
|
|
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
|
2021-04-10 16:55:17 +00:00
|
|
|
"/boot" = { device = "/dev/disk/by-partlabel/EFI\\x20system\\x20partition"; fsType = "vfat"; };
|
2022-07-25 02:11:25 +00:00
|
|
|
"/home" = { device = "zroot/locker/home"; fsType = "zfs"; };
|
|
|
|
"/nix" = { device = "zroot/locker/nix"; fsType = "zfs"; };
|
|
|
|
"/var/log" = { device = "zroot/locker/log"; fsType = "zfs"; };
|
2021-12-05 00:58:08 +00:00
|
|
|
};
|
2021-04-10 16:55:17 +00:00
|
|
|
|
2022-08-30 00:02:31 +00:00
|
|
|
system.stateVersion = "22.05";
|
2021-04-10 16:55:17 +00:00
|
|
|
}
|