Compare commits
2 Commits
af6bb08705
...
1a3b50e11d
Author | SHA1 | Date |
---|---|---|
Jaculabilis | 1a3b50e11d | |
Tim Van Baak | b6f3abccbe |
11
flake.lock
11
flake.lock
|
@ -40,16 +40,15 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671498165,
|
"lastModified": 1671480147,
|
||||||
"narHash": "sha256-BznhoEdQN9dzN0/2CpmvMlrVezZbca3i6KB5rr/3QBE=",
|
"narHash": "sha256-IzWdZL8jMNtyKsXXJjn2L4MsBeR52WBdhciPw4latHU=",
|
||||||
"owner": "Jaculabilis",
|
"owner": "nix-community",
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"rev": "088e331ab2d4588b3b54b17b47569807e83d8ad9",
|
"rev": "577d7919e4380e6905e69d4a5f8f48a41ca37187",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "Jaculabilis",
|
"owner": "nix-community",
|
||||||
"ref": "skip-copy",
|
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
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 }@attrs: {
|
outputs = { self, nixpkgs, nixos-wsl }: {
|
||||||
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
modules = [ ./machine/catacomb ];
|
modules = [ ./machine/catacomb ];
|
||||||
|
@ -17,8 +16,10 @@
|
||||||
};
|
};
|
||||||
nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = attrs;
|
modules = [
|
||||||
modules = [ ./machine/stagirite ];
|
nixos-wsl.nixosModules.wsl
|
||||||
|
./machine/stagirite
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, config, modulesPath, nixos-wsl, ... }:
|
{ lib, pkgs, config, modulesPath, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
@ -7,15 +7,13 @@ 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 = true;
|
startMenuLaunchers = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
|
|
Loading…
Reference in New Issue