feat (hosts/elistraee): add nixos-wsl config

This commit is contained in:
Henri Saudubray 2026-02-04 09:06:43 +00:00
parent d1c0846cf8
commit 7955b8220f
Signed by: hms
GPG key ID: 7065F57ED8856128
12 changed files with 243 additions and 143 deletions

View file

@ -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;
};
}