Compare commits

...

4 commits

Author SHA1 Message Date
teutat3s 59c3cbadbb
dumpyourvms, ryzensun: update wireguard peers 2024-10-07 17:05:21 +02:00
teutat3s d4eaa00b81
refactor: use native NixOS to build host configs
instead of nixos-flake, now nixos-unified
2024-10-07 17:00:27 +02:00
teutat3s 151045ca8a
flake: update invoiceplane-template, remove nixos-flake 2024-10-07 16:59:18 +02:00
teutat3s 0b8df81e6a
flake.lock: Update
Flake lock file updates:

• Updated input 'deploy-rs':
    'github:serokell/deploy-rs/3867348fa92bc892eba5d9ddb2d7a97b9e127a8a' (2024-06-12)
  → 'github:serokell/deploy-rs/aa07eb05537d4cd025e2310397a6adcedfe72c76' (2024-09-27)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a' (2024-09-12)
  → 'github:hercules-ci/flake-parts/3d04084d54bedc3d6b8b736c70ef449225c361b1' (2024-10-01)
• Updated input 'flake-parts/nixpkgs-lib':
    '356624c120.tar.gz?narHash=sha256-Ss8QWLXdr2JCBPcYChJhz4xJm%2Bh/xjl4G0c0XlP6a74%3D' (2024-09-01)
  → 'fb192fec7c.tar.gz?narHash=sha256-0xHYkMkeLVQAMa7gvkddbPqpxph%2BhDzdu1XdGPJR%2BOs%3D' (2024-10-01)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/bd7d1e3912d40f799c5c0f7e5820ec950f1e0b3d' (2024-09-22)
  → 'github:lnl7/nix-darwin/8c8388ade72e58efdeae71b4cbb79e872c23a56b' (2024-10-03)
• Updated input 'nix-direnv':
    'github:nix-community/nix-direnv/41d7d45cae59b24cf0df1efb8881238ce0ed5906' (2024-09-20)
  → 'github:nix-community/nix-direnv/83366760e5838047e5c330b583f60c616c0920be' (2024-09-30)
• Updated input 'nixos-flake':
    'github:srid/nixos-flake/ef4921f6af505ee41ccab57b65b99be9cef63886' (2024-09-13)
  → 'github:srid/nixos-flake/bf66125e692fbed6aa3abeaf386677b64d080a6b' (2024-10-06)
• Updated input 'nixos-hardware':
    'github:nixos/nixos-hardware/d0cb432a9d28218df11cbd77d984a2a46caeb5ac' (2024-09-22)
  → 'github:nixos/nixos-hardware/b7ca02c7565fbf6d27ff20dd6dbd49c5b82eef28' (2024-10-04)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/23cbb250f3bf4f516a2d0bf03c51a30900848075' (2024-09-22)
  → 'github:nixos/nixpkgs/ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6' (2024-10-06)
• Updated input 'unstable':
    'github:nixos/nixpkgs/9357f4f23713673f310988025d9dc261c20e70c6' (2024-09-21)
  → 'github:nixos/nixpkgs/bc947f541ae55e999ffdb4013441347d83b00feb' (2024-10-04)
2024-10-06 20:34:17 +02:00
8 changed files with 134 additions and 90 deletions

View file

@ -38,11 +38,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1718194053, "lastModified": 1727447169,
"narHash": "sha256-FaGrf7qwZ99ehPJCAwgvNY5sLCqQ3GDiE/6uLhxxwSY=", "narHash": "sha256-3KyjMPUKHkiWhwR91J1YchF6zb6gvckCAY1jOE+ne0U=",
"owner": "serokell", "owner": "serokell",
"repo": "deploy-rs", "repo": "deploy-rs",
"rev": "3867348fa92bc892eba5d9ddb2d7a97b9e127a8a", "rev": "aa07eb05537d4cd025e2310397a6adcedfe72c76",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -97,11 +97,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1726153070, "lastModified": 1727826117,
"narHash": "sha256-HO4zgY0ekfwO5bX0QH/3kJ/h4KvUDFZg8YpkNwIbg1U=", "narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a", "rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -207,11 +207,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720174790, "lastModified": 1728309617,
"narHash": "sha256-Nl6/5AzCg6yoU7OlJrOz8h4w2ENXZyj3AuCFXKxZ/W0=", "narHash": "sha256-qEvJZivt+uaKDt53S4W0NGG2VgPwbSDeoMXRnoW+iJ4=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "db4fccbd58cb1411482cdd4ab275daccfe9c870b", "rev": "27d180c69aaad9366f5f7e731a3205d3e96c37f2",
"revCount": 30, "revCount": 37,
"type": "git", "type": "git",
"url": "https://git.pub.solar/teutat3s/invoiceplane-templates.git" "url": "https://git.pub.solar/teutat3s/invoiceplane-templates.git"
}, },
@ -262,11 +262,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1727003835, "lastModified": 1727999297,
"narHash": "sha256-Cfllbt/ADfO8oxbT984MhPHR6FJBaglsr1SxtDGbpec=", "narHash": "sha256-LTJuQPCsSItZ/8TieFeP30iY+uaLoD0mT0tAj1gLeyQ=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "bd7d1e3912d40f799c5c0f7e5820ec950f1e0b3d", "rev": "8c8388ade72e58efdeae71b4cbb79e872c23a56b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -287,11 +287,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1726817540, "lastModified": 1727672109,
"narHash": "sha256-wAFpWuW9AKzvRHHJPYhrY+9LlYgAiWwLrB0W/8iPiic=", "narHash": "sha256-xqlsvY2F09hjIjDbi5yJ7/8mB7TgPH3rNqdexbwGe/A=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-direnv", "repo": "nix-direnv",
"rev": "41d7d45cae59b24cf0df1efb8881238ce0ed5906", "rev": "83366760e5838047e5c330b583f60c616c0920be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -316,28 +316,13 @@
"type": "github" "type": "github"
} }
}, },
"nixos-flake": {
"locked": {
"lastModified": 1726266595,
"narHash": "sha256-r+mX2ZC/mQ7zlLPeF/HvLNN4VnXfoWxbc5StpKHKDHM=",
"owner": "srid",
"repo": "nixos-flake",
"rev": "ef4921f6af505ee41ccab57b65b99be9cef63886",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "nixos-flake",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1727040444, "lastModified": 1728056216,
"narHash": "sha256-19FNN5QT9Z11ZUMfftRplyNN+2PgcHKb3oq8KMW/hDA=", "narHash": "sha256-IrO06gFUDTrTlIP3Sz+mRB6WUoO2YsgMtOD3zi0VEt0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "d0cb432a9d28218df11cbd77d984a2a46caeb5ac", "rev": "b7ca02c7565fbf6d27ff20dd6dbd49c5b82eef28",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -348,11 +333,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1726969270, "lastModified": 1728193676,
"narHash": "sha256-8fnFlXBgM/uSvBlLWjZ0Z0sOdRBesyNdH0+esxqizGc=", "narHash": "sha256-PbDWAIjKJdlVg+qQRhzdSor04bAPApDqIv2DofTyynk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "23cbb250f3bf4f516a2d0bf03c51a30900848075", "rev": "ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -364,14 +349,14 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1725233747, "lastModified": 1727825735,
"narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" "url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" "url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
} }
}, },
"root": { "root": {
@ -386,7 +371,6 @@
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-direnv": "nix-direnv", "nix-direnv": "nix-direnv",
"nixos-22-05": "nixos-22-05", "nixos-22-05": "nixos-22-05",
"nixos-flake": "nixos-flake",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"triton-vmtools": "triton-vmtools", "triton-vmtools": "triton-vmtools",
@ -546,11 +530,11 @@
}, },
"unstable": { "unstable": {
"locked": { "locked": {
"lastModified": 1726937504, "lastModified": 1728018373,
"narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=", "narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9357f4f23713673f310988025d9dc261c20e70c6", "rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -19,7 +19,6 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
nixos-flake.url = "github:srid/nixos-flake";
deploy-rs.url = "github:serokell/deploy-rs"; deploy-rs.url = "github:serokell/deploy-rs";
deploy-rs.inputs.nixpkgs.follows = "nixpkgs"; deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
@ -68,7 +67,6 @@
]; ];
imports = [ imports = [
inputs.nixos-flake.flakeModule
./lib ./lib
./modules ./modules
./hosts ./hosts

View file

@ -2,14 +2,35 @@
withSystem, withSystem,
self, self,
inputs, inputs,
config,
... ...
}: }:
{ {
flake = { flake = {
nixosConfigurations = { nixosModules = {
dumpyourvms = self.nixos-flake.lib.mkLinuxSystem { home-manager = {
nixpkgs.hostPlatform = "x86_64-linux";
imports = [ imports = [
inputs.home-manager.nixosModules.home-manager
({
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
flake = {
inherit self inputs config;
};
};
})
];
};
};
nixosConfigurations = {
dumpyourvms = self.inputs.nixpkgs.lib.nixosSystem {
specialArgs = {
flake = {
inherit self inputs config;
};
};
modules = [
self.nixosModules.base self.nixosModules.base
./dumpyourvms ./dumpyourvms
self.nixosModules.teutat3s self.nixosModules.teutat3s
@ -24,9 +45,13 @@
]; ];
}; };
ryzensun = self.nixos-flake.lib.mkLinuxSystem { ryzensun = self.inputs.nixpkgs.lib.nixosSystem {
nixpkgs.hostPlatform = "x86_64-linux"; specialArgs = {
imports = [ flake = {
inherit self inputs config;
};
};
modules = [
self.nixosModules.base self.nixosModules.base
./ryzensun ./ryzensun
self.nixosModules.teutat3s self.nixosModules.teutat3s
@ -40,9 +65,13 @@
]; ];
}; };
fae = self.nixos-flake.lib.mkLinuxSystem { fae = self.inputs.nixpkgs.lib.nixosSystem {
nixpkgs.hostPlatform = "aarch64-linux"; specialArgs = {
imports = [ flake = {
inherit self inputs config;
};
};
modules = [
self.nixosModules.base self.nixosModules.base
inputs.nixos-hardware.nixosModules.raspberry-pi-4 inputs.nixos-hardware.nixosModules.raspberry-pi-4
./fae ./fae
@ -52,9 +81,13 @@
]; ];
}; };
#powder = self.nixos-flake.lib.mkLinuxSystem { #powder = self.inputs.nixpkgs.lib.nixosSystem {
# nixpkgs.hostPlatform = "aarch64-linux"; # specialArgs = {
# imports = [ # flake = {
# inherit self inputs config;
# };
# };
# modules = [
# self.nixosModules.base # self.nixosModules.base
# inputs.nixos-hardware.nixosModules.raspberry-pi-4 # inputs.nixos-hardware.nixosModules.raspberry-pi-4
# ./powder # ./powder
@ -65,9 +98,13 @@
# ]; # ];
#}; #};
iso = self.nixos-flake.lib.mkLinuxSystem { iso = self.inputs.nixpkgs.lib.nixosSystem {
nixpkgs.hostPlatform = "x86_64-linux"; specialArgs = {
imports = [ flake = {
inherit self inputs config;
};
};
modules = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
self.nixosModules.base self.nixosModules.base
./iso ./iso
@ -75,10 +112,13 @@
]; ];
}; };
iso-arm = self.nixos-flake.lib.mkLinuxSystem { iso-arm = self.inputs.nixpkgs.lib.nixosSystem {
nixpkgs.hostPlatform = "aarch64-linux"; specialArgs = {
nixpkgs.buildPlatform = "x86_64-linux"; flake = {
imports = [ inherit self inputs config;
};
};
modules = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
self.nixosModules.base self.nixosModules.base
./iso ./iso
@ -86,9 +126,13 @@
]; ];
}; };
iso-graphical = self.nixos-flake.lib.mkLinuxSystem { iso-graphical = self.inputs.nixpkgs.lib.nixosSystem {
nixpkgs.hostPlatform = "x86_64-linux"; specialArgs = {
imports = [ flake = {
inherit self inputs config;
};
};
modules = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
self.nixosModules.base self.nixosModules.base
./iso ./iso

View file

@ -43,4 +43,6 @@
size = 18432; size = 18432;
} }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
} }

View file

@ -176,16 +176,6 @@
endpoint = "[2a01:4f8:172:1c25::1]:51820"; endpoint = "[2a01:4f8:172:1c25::1]:51820";
persistentKeepalive = 15; persistentKeepalive = 15;
} }
{
# flora-6.pub.solar
publicKey = "jtSR5G2P/nm9s8WrVc26Xc/SQLupRxyXE+5eIeqlsTU=";
allowedIPs = [
"10.7.6.2/32"
"fd00:fae:fae:fae:fae:2::/96"
];
endpoint = "80.71.153.210:51820";
persistentKeepalive = 15;
}
{ {
# metronom.pub.solar # metronom.pub.solar
publicKey = "zOSYGO7MfnOOUnzaTcWiKRQM0qqxR3JQrwx/gtEtHmo="; publicKey = "zOSYGO7MfnOOUnzaTcWiKRQM0qqxR3JQrwx/gtEtHmo=";
@ -215,7 +205,7 @@
"10.7.6.5/32" "10.7.6.5/32"
"fd00:fae:fae:fae:fae:5::/96" "fd00:fae:fae:fae:fae:5::/96"
]; ];
#endpoint = "80.244.242.5:51820"; #endpoint = "85.215.152.22:51820";
endpoint = "[2a01:239:35d:f500::1]:51820"; endpoint = "[2a01:239:35d:f500::1]:51820";
persistentKeepalive = 15; persistentKeepalive = 15;
} }

View file

@ -4,4 +4,5 @@
isoImage.squashfsCompression = "gzip -Xcompression-level 1"; isoImage.squashfsCompression = "gzip -Xcompression-level 1";
systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ]; systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
networking.networkmanager.enable = false; networking.networkmanager.enable = false;
nixpkgs.hostPlatform = "x86_64-linux";
} }

View file

@ -36,4 +36,6 @@
}; };
swapDevices = [ ]; swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
} }

View file

@ -85,16 +85,6 @@
endpoint = "[2a01:4f8:172:1c25::1]:51820"; endpoint = "[2a01:4f8:172:1c25::1]:51820";
persistentKeepalive = 15; persistentKeepalive = 15;
} }
{
# flora-6.pub.solar
publicKey = "jtSR5G2P/nm9s8WrVc26Xc/SQLupRxyXE+5eIeqlsTU=";
allowedIPs = [
"10.7.6.2/32"
"fd00:fae:fae:fae:fae:2::/96"
];
endpoint = "80.71.153.210:51820";
persistentKeepalive = 15;
}
{ {
# metronom.pub.solar # metronom.pub.solar
publicKey = "zOSYGO7MfnOOUnzaTcWiKRQM0qqxR3JQrwx/gtEtHmo="; publicKey = "zOSYGO7MfnOOUnzaTcWiKRQM0qqxR3JQrwx/gtEtHmo=";
@ -117,6 +107,39 @@
endpoint = "[2001:4d88:1ffa:26::5]:51820"; endpoint = "[2001:4d88:1ffa:26::5]:51820";
persistentKeepalive = 15; persistentKeepalive = 15;
} }
{
# trinkgenossin.pub.solar
publicKey = "QWgHovHxtqiQhnHLouSWiT6GIoQDmuvnThYL5c/rvU4=";
allowedIPs = [
"10.7.6.5/32"
"fd00:fae:fae:fae:fae:5::/96"
];
#endpoint = "85.215.152.22:51820";
endpoint = "[2a01:239:35d:f500::1]:51820";
persistentKeepalive = 15;
}
{
# delite.pub.solar
publicKey = "ZT2qGWgMPwHRUOZmTQHWCRX4m14YwOsiszjsA5bpc2k=";
allowedIPs = [
"10.7.6.6/32"
"fd00:fae:fae:fae:fae:6::/96"
];
#endpoint = "80.244.242.5:51820";
endpoint = "[2a04:52c0:124:9d8c::2]:51820";
persistentKeepalive = 15;
}
{
# blue-shell.pub.solar
publicKey = "bcrIpWrKc1M+Hq4ds3aN1lTaKE26f2rvXhd+93QrzR8=";
allowedIPs = [
"10.7.6.7/32"
"fd00:fae:fae:fae:fae:7::/96"
];
#endpoint = "80.244.242.5:51820";
endpoint = "[2a03:4000:43:24e::1]:51820";
persistentKeepalive = 15;
}
]; ];
}; };
#wg1 = { #wg1 = {