# modules/hosts/laptop/default.nix — the system this laptop boots. # # nh os switch (NH_FLAKE = ~/NixDaemon, picked by hostname) # sudo nixos-rebuild switch --flake ~/NixDaemon#nixos (the plain way) # # Everything the machine is comes from self.nixosModules.laptop (configuration.nix). { self, inputs, ... }: { flake.nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; user = "daemonsec"; identity = import ./_identity.nix; # name, email, GPG key (git.nix, gpg.nix) }; modules = [ self.nixosModules.laptop ]; }; }