My NixOS config Part 3: Flake-Parts Crusaders nix.ladas552.me
hjem nix nixos impermanence flake-parts nvfetcher niri noctalia

attempts number 2 for NixWool

Ladas552 29ef1660 effb2e36

+13 -1
+1
modules/hosts/NixWool/imports.nix
··· 23 23 imp 24 24 nh 25 25 nix 26 + grub 26 27 openssh 27 28 sops 28 29 tailscale
+4 -1
modules/hosts/NixWool/install.sh
··· 39 39 # Format the boot partition 40 40 mkfs.vfat -F32 /dev/sda1 41 41 42 + # Swap 43 + mkswap /dev/sda2 44 + swapon /dev/sda2 45 + 42 46 # Create the pool on the drive, use reasonable settings 43 47 echo "Creating zroot..." 44 48 zpool create -f $ZFS_OPTS zroot /dev/sda3 ··· 49 53 mount /dev/sda1 /mnt/boot 50 54 51 55 # This create the zvols used in this cluster 52 - zfs create -o mountpoint=none zroot 53 56 for zvol in "tmp" "nix" "cache" "persist"; do 54 57 zfs create -o mountpoint=legacy zroot/$zvol 55 58 mount -t zfs zroot/$zvol /mnt/$zvol
+8
modules/hosts/NixWool/nixwool.nix
··· 24 24 max-jobs = lib.mkForce 1; 25 25 }; 26 26 27 + boot = { 28 + supportedFilesystems.ntfs = lib.mkForce false; 29 + loader = { 30 + grub.efiSupport = lib.mkForce false; 31 + efi = lib.mkForce { }; 32 + }; 33 + }; 34 + 27 35 custom.imp.home.directories = [ 28 36 ]; 29 37 };