Refactor things and make zippy an user node.
This commit is contained in:
11
common/dev-node.nix
Normal file
11
common/dev-node.nix
Normal 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
10
common/nomad-client.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.nomad.enable = false;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
nomad
|
||||||
|
wander
|
||||||
|
damon
|
||||||
|
];
|
||||||
|
}
|
||||||
8
flake.lock
generated
8
flake.lock
generated
@@ -135,11 +135,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726070115,
|
"lastModified": 1726077552,
|
||||||
"narHash": "sha256-vWwTNxTMpK9d0xtZv3n0BWdMuHYF1kQkdN3cJmErU+A=",
|
"narHash": "sha256-I2u/iI8e/pRVtfAs6juLOrPa+zWZjtUzFv3OxemNHfE=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "31703b82124c15b7be8f094c85576b6c4edc4db4",
|
"rev": "0242d6da9aba2ccb530870b944d1837d4cac6b54",
|
||||||
"revCount": 5,
|
"revCount": 6,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:/home/ppetru/ppetru-home"
|
"url": "file:/home/ppetru/ppetru-home"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,24 +2,15 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../common/global
|
../../common/global
|
||||||
|
../../common/nomad-client.nix
|
||||||
../../common/user-node.nix
|
../../common/user-node.nix
|
||||||
|
../../common/dev-node.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "nix-dev";
|
networking.hostName = "nix-dev";
|
||||||
services.tailscaleAutoconnect.authkey = "tskey-auth-k6s6VD5CNTRL-3fmjSfzbQ3PHUMyaiML95P8xzmGv5XxYc";
|
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.enable = true;
|
||||||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
../../common/global
|
../../common/global
|
||||||
../../common/compute-node.nix
|
../../common/compute-node.nix
|
||||||
|
../../common/dev-node.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user