🏡 my personal home lab
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

update nomad cluster

okkdev cbaf70c5 a0b3e6e5

+41 -6
+7
common/common.nix
··· 1 1 { config, lib, pkgs, ... }: 2 2 3 3 { 4 + nixpkgs.config.allowUnfree = true; 5 + 4 6 # Set your time zone. 5 7 time.timeZone = "Europe/Zurich"; 6 8 ··· 17 19 enable = true; 18 20 settings.PasswordAuthentication = false; 19 21 settings.PermitRootLogin = "prohibit-password"; 22 + }; 23 + 24 + networking.firewall = { 25 + enable = true; 26 + allowedTCPPorts = [ 22 80 443 ]; 20 27 }; 21 28 }
+26
common/nomad.nix
··· 1 + { config, lib, pkgs, ... }: { 2 + services.nomad = { 3 + enable = true; 4 + package = pkgs.nomad_1_6; 5 + enableDocker = true; 6 + dropPrivileges = false; 7 + 8 + settings = { 9 + datacenter = "home"; 10 + bind_addr = "0.0.0.0"; 11 + client = { 12 + enabled = true; 13 + servers = [ "127.0.0.1" ]; 14 + }; 15 + server = { 16 + enabled = true; 17 + bootstrap_expect = 2; 18 + server_join = { retry_join = [ "10.0.0.11" "10.0.0.12" ]; }; 19 + }; 20 + }; 21 + }; 22 + 23 + virtualisation = { docker.enable = true; }; 24 + 25 + networking.firewall = { allowedTCPPorts = [ 4646 4647 4648 ]; }; 26 + }
+3 -3
flake.lock
··· 54 54 }, 55 55 "nixpkgs_2": { 56 56 "locked": { 57 - "lastModified": 1708566995, 58 - "narHash": "sha256-e/THimsoxxMAHSbwMKov5f5Yg+utTj6XVGEo24Lhx+0=", 57 + "lastModified": 1709309926, 58 + "narHash": "sha256-VZFBtXGVD9LWTecGi6eXrE0hJ/mVB3zGUlHImUs2Qak=", 59 59 "owner": "nixos", 60 60 "repo": "nixpkgs", 61 - "rev": "3cb4ae6689d2aa3f363516234572613b31212b78", 61 + "rev": "79baff8812a0d68e24a836df0a364c678089e2c7", 62 62 "type": "github" 63 63 }, 64 64 "original": {
+1 -1
flake.nix
··· 6 6 deploy-rs.url = "github:serokell/deploy-rs"; 7 7 }; 8 8 9 - outputs = { self, nixpkgs, deploy-rs }: { 9 + outputs = { self, nixpkgs, deploy-rs, ... }: { 10 10 nixosConfigurations = { 11 11 nix-node-1 = nixpkgs.lib.nixosSystem { 12 12 system = "aarch64-linux";
+2 -1
machines/nix-node-1.nix
··· 1 - { config, lib, pkgs, ... }: 1 + { config, lib, pkgs, ... }@args: 2 2 3 3 { 4 4 imports = [ 5 5 ../hardware/cm4/hardware-configuration.nix 6 6 ../common/common.nix 7 + ../common/nomad.nix 7 8 ]; 8 9 9 10 # Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
+2 -1
machines/nix-node-2.nix
··· 1 - { config, lib, pkgs, ... }: 1 + { config, lib, pkgs, ... }@args: 2 2 3 3 { 4 4 imports = [ 5 5 ../hardware/cm4/hardware-configuration.nix 6 6 ../common/common.nix 7 + ../common/nomad.nix 7 8 ]; 8 9 9 10 # Use the extlinux boot loader. (NixOS wants to enable GRUB by default)