feat (hosts/elistraee): add nixos-wsl config
This commit is contained in:
parent
d1c0846cf8
commit
7955b8220f
12 changed files with 243 additions and 143 deletions
29
flake.nix
29
flake.nix
|
|
@ -5,34 +5,41 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||
home-manager.url = "github:nix-community/home-manager/release-25.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/release-25.11";
|
||||
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, home-manager, ... }:
|
||||
let
|
||||
home-manager-options = {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.hms = ./home;
|
||||
home-manager.backupFileExtension = "bak";
|
||||
};
|
||||
in
|
||||
{ nixpkgs, home-manager, nixos-wsl, ... }@inputs:
|
||||
{
|
||||
nixosConfigurations.selune = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/selune
|
||||
home-manager.nixosModules.home-manager
|
||||
home-manager-options
|
||||
./home
|
||||
];
|
||||
};
|
||||
nixosConfigurations.shar = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/shar
|
||||
home-manager.nixosModules.home-manager
|
||||
home-manager-options
|
||||
./home
|
||||
];
|
||||
};
|
||||
nixosConfigurations.elistraee = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/elistraee
|
||||
nixos-wsl.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
./home
|
||||
];
|
||||
};
|
||||
homeManagerModules.default = ./home;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue