add kidney machine config

This commit is contained in:
xunuwu 2024-08-22 18:16:47 +02:00
parent 82bed310d8
commit 95d1f5adbe
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
6 changed files with 131 additions and 21 deletions

View file

@ -34,6 +34,23 @@ in {
inherit specialArgs;
};
kidney = {
deployment = {
allowLocalDeployment = true;
};
imports = lib.flatten [
./kidney
(modulePaths [
"core/tools.nix"
"network/tailscale.nix"
"programs/tools.nix"
"nix"
"nix/gc.nix"
])
];
};
nixdesk = {
deployment = {
allowLocalDeployment = true;

9
hosts/kidney/default.nix Normal file
View file

@ -0,0 +1,9 @@
{lib}: {
imports = [
./wsl.nix
];
networking.hostName = "kidney";
system.stateVersion = "24.05";
}

8
hosts/kidney/wsl.nix Normal file
View file

@ -0,0 +1,8 @@
{inputs, ...}: {
imports = [
inputs.nixos-wsl.nixosModules.default
];
wsl.enable = true;
wsl.defaultUser = "xun";
}