{ config, ... }: let defaultUser = config.ataraxia.defaults.users.defaultUser; in { imports = [ ./hardware-configuration.nix ./boot.nix ]; ataraxia.defaults.role = "desktop"; # Impermanence ataraxia.filesystems.zfs.enable = true; ataraxia.filesystems.zfs.eraseOnBoot.enable = true; ataraxia.filesystems.zfs.eraseOnBoot.snapshots = [ "rpool/nixos/root@empty" "rpool/user/home@empty" ]; ataraxia.filesystems.zfs.mountpoints = [ "/etc/secrets" "/media/libvirt" "/nix" "/persist" "/srv" "/var/lib/ccache" "/var/lib/containers" "/var/lib/docker" "/var/lib/libvirt" "/var/lib/postgresql" "/var/log" "/vol" ]; # Home-manager home-manager.users.${defaultUser} = { ataraxia.defaults.role = "desktop"; home.stateVersion = "25.05"; }; # Services services.postgresql.settings = { full_page_writes = "off"; wal_init_zero = "off"; wal_recycle = "off"; }; # Auto-mount lan nfs share fileSystems = { "/media/files" = { fsType = "ntfs"; device = "/dev/disk/by-partuuid/15fa11a1-a6d8-4962-9c03-74b209d7c46a"; options = [ "nofail" "uid=${toString config.users.users.${defaultUser}.uid}" "gid=${toString config.users.groups.users.gid}" ]; }; "/media/win-sys" = { fsType = "ntfs"; device = "/dev/disk/by-partuuid/4fba33e7-6b47-4e3b-b18b-882a58032673"; options = [ "nofail" "uid=${toString config.users.users.${defaultUser}.uid}" "gid=${toString config.users.groups.users.gid}" ]; }; "/media/local-nfs" = { device = "10.10.10.11:/"; fsType = "nfs4"; options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" ]; }; }; system.stateVersion = "25.05"; }