Move WSL from standalone Home Manager to NixOS
This commit is contained in:
parent
d1e0abf4c5
commit
c5afed5767
10 changed files with 324 additions and 92 deletions
35
flake.nix
35
flake.nix
|
@ -14,6 +14,8 @@
|
|||
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs-2405.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
|
||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
@ -22,6 +24,7 @@
|
|||
disko,
|
||||
home-manager,
|
||||
nixos-hardware,
|
||||
nixos-wsl,
|
||||
nixpkgs,
|
||||
self,
|
||||
...
|
||||
|
@ -99,6 +102,23 @@
|
|||
];
|
||||
};
|
||||
|
||||
PW05CH3L = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
specialArgs = specialArgs // {
|
||||
headless = true;
|
||||
hostname = "PW05CH3L";
|
||||
};
|
||||
|
||||
modules = [
|
||||
agenix.nixosModules.default
|
||||
disko.nixosModules.disko
|
||||
nixos-wsl.nixosModules.default
|
||||
|
||||
./nix/hosts/PW05CH3L
|
||||
];
|
||||
};
|
||||
|
||||
hetznix = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
|
@ -114,20 +134,5 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"${username}@PW05CH3L" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
extraSpecialArgs = specialArgs // {
|
||||
headless = true;
|
||||
hostname = "PW05CH3L";
|
||||
};
|
||||
|
||||
modules = [
|
||||
./nix/home/opdavies
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue