Refactor things and make zippy an user node.

This commit is contained in:
2024-09-11 19:17:20 +01:00
parent 82ec765245
commit 93d59fe762
5 changed files with 28 additions and 15 deletions

11
common/dev-node.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, inputs, ... }:
{
environment.systemPackages = with pkgs; [
wget
deploy-rs
docker
jq
];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
}

10
common/nomad-client.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
services.nomad.enable = false;
environment.systemPackages = with pkgs; [
nomad
wander
damon
];
}

8
flake.lock generated
View File

@@ -135,11 +135,11 @@
]
},
"locked": {
"lastModified": 1726070115,
"narHash": "sha256-vWwTNxTMpK9d0xtZv3n0BWdMuHYF1kQkdN3cJmErU+A=",
"lastModified": 1726077552,
"narHash": "sha256-I2u/iI8e/pRVtfAs6juLOrPa+zWZjtUzFv3OxemNHfE=",
"ref": "refs/heads/master",
"rev": "31703b82124c15b7be8f094c85576b6c4edc4db4",
"revCount": 5,
"rev": "0242d6da9aba2ccb530870b944d1837d4cac6b54",
"revCount": 6,
"type": "git",
"url": "file:/home/ppetru/ppetru-home"
},

View File

@@ -2,24 +2,15 @@
{
imports = [
../../common/global
../../common/nomad-client.nix
../../common/user-node.nix
../../common/dev-node.nix
./hardware.nix
];
networking.hostName = "nix-dev";
services.tailscaleAutoconnect.authkey = "tskey-auth-k6s6VD5CNTRL-3fmjSfzbQ3PHUMyaiML95P8xzmGv5XxYc";
environment.systemPackages = with pkgs; [
wget
git
nomad
deploy-rs
docker
jq
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
}

View File

@@ -3,6 +3,7 @@
imports = [
../../common/global
../../common/compute-node.nix
../../common/dev-node.nix
./hardware.nix
];