- Add import-tree input; flake.nix now auto-loads every file under ./flake-modules so new hosts/features drop in without editing flake.nix. - Extract the duplicated dotfiles-rebuild service, timer, and safe.directory wiring into nixos/modules/dotfiles-rebuild.nix, exposed via flake.nixosModules.dotfiles-rebuild. - sunken-ship and phantom-ship now pull it in from their flake-modules; hostname-specific flakeRef is derived from config.networking.hostName.
17 lines
477 B
Nix
17 lines
477 B
Nix
{ inputs, config, ... }: {
|
|
flake.nixosConfigurations.sunken-ship = inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
../hosts/sunken-ship.nix
|
|
config.flake.nixosModules.dotfiles-rebuild
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
(import ../lib/home-manager-user.nix {
|
|
lib = inputs.nixpkgs.lib;
|
|
user = "danny";
|
|
homeDirectory = "/home/danny";
|
|
stateVersion = "25.11";
|
|
})
|
|
];
|
|
};
|
|
}
|