add desktop wsl

This commit is contained in:
sadan 2025-03-26 21:57:03 +00:00
parent c3c311cd37
commit 4b4159b27d
No known key found for this signature in database
3 changed files with 47 additions and 10 deletions

View file

@ -0,0 +1,11 @@
{...}: {
imports = [
../../common/users/meyer-wsl
];
wsl = {
defaultUser = "meyer";
enable = true;
};
system.stateVersion = "24.05";
programs.zsh.enable = true;
}

View file

@ -4,7 +4,6 @@ let
in in
{ {
imports = [ imports = [
(import ../../systemModules/sops.nix { inherit NAME; })
(import ../../systemModules/nixHelper.nix { inherit NAME; }) (import ../../systemModules/nixHelper.nix { inherit NAME; })
]; ];
users = { users = {
@ -25,6 +24,7 @@ in
}; };
}; };
home-manager = { home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit inputs stable unstable; }; extraSpecialArgs = { inherit inputs stable unstable; };
users = { users = {
"${NAME}" = import ./home.nix; "${NAME}" = import ./home.nix;

View file

@ -197,6 +197,32 @@
nixos-wsl.nixosModules.wsl nixos-wsl.nixosModules.wsl
]; ];
}; };
wsl-desktop-evo4b5 = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
unstable = import nixpkgs-unstable {
inherit system;
config = {
allowUnfree = true;
};
};
};
modules = [
(
{ pkgs, ... }:
{
_module.args = {
stable = pkgs;
};
}
)
nixos-wsl.nixosModules.default
./boxes/wsl-desktop-evo4b5/configuration.nix
inputs.home-manager.nixosModules.default
inputs.nix-index-database.nixosModules.nix-index
{ programs.nix-index-database.comma.enable = true; }
];
}; };
# nixosConfigurations.default = nixpkgs.lib.nixosSystem { # nixosConfigurations.default = nixpkgs.lib.nixosSystem {
# specialArgs = {inherit inputs;}; # specialArgs = {inherit inputs;};
@ -208,5 +234,5 @@
# cpkg = forAllSystems(system: import ./customPackages); # cpkg = forAllSystems(system: import ./customPackages);
}; };
}; };
};
} }