diff --git a/flake.lock b/flake.lock index ed40813..5691021 100644 --- a/flake.lock +++ b/flake.lock @@ -1263,6 +1263,29 @@ "type": "github" } }, + "rigging": { + "inputs": { + "flake-parts": [ + "flake-parts" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1771373909, + "narHash": "sha256-bUv9ZtGPOGINXirJoOUfICkpQ3pgwkAkcRXecF+RcEc=", + "ref": "refs/heads/main", + "rev": "6f555de30d23d32923e0280af185525ab8648774", + "revCount": 2, + "type": "git", + "url": "ssh://git@git.toph.so/toph/rigging.git" + }, + "original": { + "type": "git", + "url": "ssh://git@git.toph.so/toph/rigging.git" + } + }, "root": { "inputs": { "agenix": "agenix", @@ -1285,6 +1308,7 @@ "nixpkgs": "nixpkgs_7", "noctalia": "noctalia", "nur": "nur", + "rigging": "rigging", "stylix": "stylix", "unstable": "unstable", "waka-victoriametrics": "waka-victoriametrics" diff --git a/flake.nix b/flake.nix index 7434caa..5279640 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,11 @@ import-tree.url = "github:vic/import-tree"; easy-hosts.url = "github:tgirlcloud/easy-hosts"; deploy-rs.url = "github:serokell/deploy-rs"; + rigging = { + url = "git+ssh://git@git.toph.so/toph/rigging.git"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-parts.follows = "flake-parts"; + }; # System management home-manager = { diff --git a/modules/flake/bosun.nix b/modules/flake/bosun.nix new file mode 100644 index 0000000..0ef1246 --- /dev/null +++ b/modules/flake/bosun.nix @@ -0,0 +1,26 @@ +# Bosun — multi-repo infrastructure management +# Declares hosts for this repo (no Nomad jobs — desktop/laptop only) +{inputs, ...}: { + imports = [ + inputs.rigging.flakeModules.default + ]; + + bosun = { + meta.name = "dotfiles"; + hosts = { + endurance = { + system = "x86_64-linux"; + tags = ["desktop" "workstation"]; + }; + aepplet = { + system = "x86_64-linux"; + tags = ["server" "data"]; + }; + vasa = { + system = "x86_64-darwin"; + class = "darwin"; + tags = ["laptop" "macos"]; + }; + }; + }; +}