From ea57526a5a179ba4135427a4f575a7d448fb57a0 Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Sat, 19 Jul 2025 18:48:09 +0200 Subject: [PATCH] add srvos --- flake.lock | 23 ++++++++++++++++++++++- flake.nix | 2 ++ machines/crocus/configuration.nix | 8 ++++++-- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 08d7686..986f4ec 100644 --- a/flake.lock +++ b/flake.lock @@ -505,7 +505,8 @@ "nix-topology": "nix-topology", "nixos-generators": "nixos-generators", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_2", + "srvos": "srvos" } }, "sops-nix": { @@ -529,6 +530,26 @@ "type": "github" } }, + "srvos": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1753061983, + "narHash": "sha256-D6+1c1L1fFJBk7ngRrPC0gHgI2DXgw2y7wNHlKvGXvk=", + "owner": "nix-community", + "repo": "srvos", + "rev": "8290c5a78a4a73baf17acdc4da7aa8e92f85b249", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "srvos", + "type": "github" + } + }, "systems": { "locked": { "lastModified": 1681028828, diff --git a/flake.nix b/flake.nix index 5e46000..742d435 100644 --- a/flake.nix +++ b/flake.nix @@ -91,6 +91,8 @@ flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; + srvos.url = "github:nix-community/srvos"; + srvos.inputs.nixpkgs.follows = "nixpkgs"; }; nixConfig = { diff --git a/machines/crocus/configuration.nix b/machines/crocus/configuration.nix index fa73c77..a0cbb4f 100644 --- a/machines/crocus/configuration.nix +++ b/machines/crocus/configuration.nix @@ -1,12 +1,10 @@ { self, - modulesPath, config, ... }: { imports = [ - (modulesPath + "/profiles/qemu-guest.nix") # ./radicle.nix ../../system ../../modules/remote-builder.nix @@ -14,6 +12,12 @@ ../../modules/unbound.nix ../../modules/unbound-auth.nix self.nixosModules.gitea + self.inputs.srvos.nixosModules.server + self.inputs.srvos.nixosModules.hardware-hetzner-cloud + ]; + + disabledModules = [ + self.inputs.srvos.nixosModules.mixins-cloud-init ]; nixpkgs.hostPlatform = "x86_64-linux";