Server NixOS configs
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: finish setting up disko setup

+49 -12
+43 -7
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "disko": { 4 + "inputs": { 5 + "nixpkgs": "nixpkgs" 6 + }, 7 + "locked": { 8 + "lastModified": 1768920986, 9 + "narHash": "sha256-CNzzBsRhq7gg4BMBuTDObiWDH/rFYHEuDRVOwCcwXw4=", 10 + "owner": "nix-community", 11 + "repo": "disko", 12 + "rev": "de5708739256238fb912c62f03988815db89ec9a", 13 + "type": "github" 14 + }, 15 + "original": { 16 + "owner": "nix-community", 17 + "ref": "latest", 18 + "repo": "disko", 19 + "type": "github" 20 + } 21 + }, 3 22 "easy-hosts": { 4 23 "locked": { 5 24 "lastModified": 1755470564, ··· 35 54 }, 36 55 "nixpkgs": { 37 56 "locked": { 38 - "lastModified": 1777268161, 39 - "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=", 40 - "owner": "nixos", 57 + "lastModified": 1768661221, 58 + "narHash": "sha256-MJwOjrIISfOpdI9x4C+5WFQXvHtOuj5mqLZ4TMEtk1M=", 59 + "owner": "NixOS", 41 60 "repo": "nixpkgs", 42 - "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76", 61 + "rev": "3327b113f2ef698d380df83fbccefad7e83d7769", 43 62 "type": "github" 44 63 }, 45 64 "original": { 46 - "owner": "nixos", 47 - "ref": "nixos-unstable", 65 + "owner": "NixOS", 66 + "ref": "nixpkgs-unstable", 48 67 "repo": "nixpkgs", 49 68 "type": "github" 50 69 } ··· 64 83 "type": "github" 65 84 } 66 85 }, 86 + "nixpkgs_2": { 87 + "locked": { 88 + "lastModified": 1777268161, 89 + "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=", 90 + "owner": "nixos", 91 + "repo": "nixpkgs", 92 + "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76", 93 + "type": "github" 94 + }, 95 + "original": { 96 + "owner": "nixos", 97 + "ref": "nixos-unstable", 98 + "repo": "nixpkgs", 99 + "type": "github" 100 + } 101 + }, 67 102 "root": { 68 103 "inputs": { 104 + "disko": "disko", 69 105 "easy-hosts": "easy-hosts", 70 106 "flake-parts": "flake-parts", 71 - "nixpkgs": "nixpkgs" 107 + "nixpkgs": "nixpkgs_2" 72 108 } 73 109 } 74 110 },
+1
flake.nix
··· 17 17 inputs.flake-parts.url = "github:hercules-ci/flake-parts"; 18 18 inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 19 19 inputs.easy-hosts.url = "github:tgirlcloud/easy-hosts"; 20 + inputs.disko.url = "github:nix-community/disko/latest"; 20 21 21 22 outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } { 22 23 systems = ["x86_64-linux"];
+1 -1
hosts/default.nix
··· 12 12 tethys = { 13 13 deployable = true; 14 14 tags = ["server", "hetzner"]; 15 - modules = []; 15 + modules = [inputs.disko.nixosModules.disko]; 16 16 }; 17 17 }; 18 18 }
+4 -4
hosts/tethys/bootloader.nix
··· 1 - { pkgs, ... }: 1 + { pkgs, modulesPath, ... }: 2 2 let 3 3 fileSystems = { xfs = true; vfat = true; }; 4 4 in 5 5 { 6 + imports = [(modulesPath + "/profiles/qemu-guest.nix")]; 7 + 6 8 boot = { 7 9 extraModulePackages = [ ]; 8 10 kernelModules = []; 9 11 kernelPackages = pkgs.linuxPackages_6_1; 10 12 kernelParams = []; 11 - supportedFilesystems = fileSystems; 12 13 13 14 initrd = { 14 - availableKernelModules = ["xhci_pci" "ahci" "nvme"]; 15 - supportedFilesystems = fileSystems; 15 + availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" ]; 16 16 kernelModules = []; 17 17 }; 18 18