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": { "locked": {
"lastModified": 1671480147, "lastModified": 1671498165,
"narHash": "sha256-IzWdZL8jMNtyKsXXJjn2L4MsBeR52WBdhciPw4latHU=", "narHash": "sha256-BznhoEdQN9dzN0/2CpmvMlrVezZbca3i6KB5rr/3QBE=",
"owner": "nix-community", "owner": "Jaculabilis",
"repo": "NixOS-WSL", "repo": "NixOS-WSL",
"rev": "577d7919e4380e6905e69d4a5f8f48a41ca37187", "rev": "088e331ab2d4588b3b54b17b47569807e83d8ad9",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "Jaculabilis",
"ref": "skip-copy",
"repo": "NixOS-WSL", "repo": "NixOS-WSL",
"type": "github" "type": "github"
} }

View File

@ -1,11 +1,12 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=refs/tags/22.11"; 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"; nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, nixos-wsl }: { outputs = { self, nixpkgs, nixos-wsl }@attrs: {
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem { nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ ./machine/catacomb ]; modules = [ ./machine/catacomb ];
@ -16,10 +17,8 @@
}; };
nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem { nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ specialArgs = attrs;
nixos-wsl.nixosModules.wsl modules = [ ./machine/stagirite ];
./machine/stagirite
];
}; };
}; };
} }

View File

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