mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-07 21:13:03 -04:00
add desktop wsl
This commit is contained in:
parent
c3c311cd37
commit
4b4159b27d
3 changed files with 47 additions and 10 deletions
11
boxes/wsl-desktop-evo4b5/configuration.nix
Normal file
11
boxes/wsl-desktop-evo4b5/configuration.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
../../common/users/meyer-wsl
|
||||||
|
];
|
||||||
|
wsl = {
|
||||||
|
defaultUser = "meyer";
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
}
|
|
@ -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;
|
||||||
|
|
28
flake.nix
28
flake.nix
|
@ -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);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue