diff options
author | Alex Auvolat <alex@adnab.me> | 2023-07-19 12:12:45 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-07-19 12:12:45 +0200 |
commit | 6eb569c1c31ba8d1d589f30c63235b75abc8033f (patch) | |
tree | 1363294f9b412c54599e6cdbf4ece03905c70927 /nixos/zinzin.nix | |
parent | f8b16de5061e0b178356a598fccffe127dd0ca51 (diff) | |
download | user-config-6eb569c1c31ba8d1d589f30c63235b75abc8033f.tar.gz user-config-6eb569c1c31ba8d1d589f30c63235b75abc8033f.zip |
make zinzin definitive kusanagi config
Diffstat (limited to 'nixos/zinzin.nix')
-rw-r--r-- | nixos/zinzin.nix | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/nixos/zinzin.nix b/nixos/zinzin.nix deleted file mode 100644 index 12e3d1f..0000000 --- a/nixos/zinzin.nix +++ /dev/null @@ -1,93 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ - (modulesPath + "/installer/scan/not-detected.nix") - ./common.nix - ./icewm.nix - ]; - - networking.hostName = "zinzin"; - networking.hostId = "304a68ef"; - - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - boot.initrd.luks.devices = { - lukszfs = { - device = "/dev/disk/by-uuid/f75e45a4-dc1e-4f38-b2d8-3336ec3790ef"; - allowDiscards = true; - }; - }; - - # ---- standard filesystems ---- - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/3BC8-460B"; - fsType = "vfat"; - }; - - fileSystems."/home" = - { device = "zinzin/nixos/home"; - fsType = "zfs"; - neededForBoot = true; # because contains password files used below - }; - - fileSystems."/nix" = - { device = "zinzin/nixos/nix"; - fsType = "zfs"; - }; - - swapDevices = [ ]; - - # ---- tmpfs root filesystem with special persisted directory ---- - - fileSystems."/" = { - device = "none"; - fsType = "tmpfs"; - options = [ "defaults" "size=4G" "mode=755" ]; - }; - - fileSystems."/persist" = - { device = "zinzin/nixos/persist"; - fsType = "zfs"; - neededForBoot = true; # because contains /var/log - }; - - environment.etc."machine-id".source = "/persist/etc/machine-id"; - - fileSystems."/etc/NetworkManager/system-connections" = - { device = "/persist/etc/NetworkManager/system-connections"; - fsType = "none"; - depends = [ "/persist" "/mnt-root/persist" ]; - options = [ "bind" ]; - }; - - fileSystems."/var/log" = - { device = "/persist/var/log"; - fsType = "none"; - depends = [ "/persist" "/mnt-root/persist" ]; - options = [ "bind" ]; - }; - - # ---- immutable user config for tmpfs root ---- - - users.mutableUsers = false; - users.users.lx.passwordFile = "/home/lx/.password"; - - # ---- - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} |