default.nix (667B)
1 # modules/hosts/laptop/default.nix — the system this laptop boots. 2 # 3 # nh os switch (NH_FLAKE = ~/NixDaemon, picked by hostname) 4 # sudo nixos-rebuild switch --flake ~/NixDaemon#nixos (the plain way) 5 # 6 # Everything the machine is comes from self.nixosModules.laptop (configuration.nix). 7 { self, inputs, ... }: 8 { 9 flake.nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem { 10 system = "x86_64-linux"; 11 specialArgs = { 12 inherit inputs; 13 user = "daemonsec"; 14 identity = import ./_identity.nix; # name, email, GPG key (git.nix, gpg.nix) 15 }; 16 modules = [ self.nixosModules.laptop ]; 17 }; 18 }