1
1
Fork 0

Compare commits

..

No commits in common. "1a3b50e11d9a8a769d9e4f071ed13a1a16c4bdc0" and "af6bb08705b8db6fccf6053e4ca9b56c37adcb63" have entirely different histories.

3 changed files with 15 additions and 13 deletions

View File

@ -40,15 +40,16 @@
]
},
"locked": {
"lastModified": 1671480147,
"narHash": "sha256-IzWdZL8jMNtyKsXXJjn2L4MsBeR52WBdhciPw4latHU=",
"owner": "nix-community",
"lastModified": 1671498165,
"narHash": "sha256-BznhoEdQN9dzN0/2CpmvMlrVezZbca3i6KB5rr/3QBE=",
"owner": "Jaculabilis",
"repo": "NixOS-WSL",
"rev": "577d7919e4380e6905e69d4a5f8f48a41ca37187",
"rev": "088e331ab2d4588b3b54b17b47569807e83d8ad9",
"type": "github"
},
"original": {
"owner": "nix-community",
"owner": "Jaculabilis",
"ref": "skip-copy",
"repo": "NixOS-WSL",
"type": "github"
}

View File

@ -1,11 +1,12 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=refs/tags/22.11";
nixos-wsl.url = "github:nix-community/NixOS-WSL";
#nixos-wsl.url = "github:nix-community/NixOS-WSL";
nixos-wsl.url = "github:Jaculabilis/NixOS-WSL/skip-copy";
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, nixos-wsl }: {
outputs = { self, nixpkgs, nixos-wsl }@attrs: {
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ ./machine/catacomb ];
@ -16,10 +17,8 @@
};
nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-wsl.nixosModules.wsl
./machine/stagirite
];
specialArgs = attrs;
modules = [ ./machine/stagirite ];
};
};
}

View File

@ -1,4 +1,4 @@
{ lib, pkgs, config, modulesPath, ... }:
{ lib, pkgs, config, modulesPath, nixos-wsl, ... }:
with lib;
let
@ -7,13 +7,15 @@ in
{
imports = [
"${modulesPath}/profiles/minimal.nix"
nixos-wsl.nixosModules.wsl
];
wsl = {
enable = true;
wslConf.automount.root = "/mnt";
defaultUser = "nixos";
startMenuLaunchers = false;
startMenuLaunchers = true;
};
system.stateVersion = "21.11";