From e45b2bfd7fe6915cf3ca73344d95596a651afad6 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 22 Sep 2025 08:05:17 +0200 Subject: [PATCH 1/2] remove devshells, prefer less deps --- devShells/flake-module.nix | 12 ++++++++++++ flake.lock | 37 +------------------------------------ flake.nix | 18 ++---------------- 3 files changed, 15 insertions(+), 52 deletions(-) create mode 100644 devShells/flake-module.nix diff --git a/devShells/flake-module.nix b/devShells/flake-module.nix new file mode 100644 index 0000000..6fa23fd --- /dev/null +++ b/devShells/flake-module.nix @@ -0,0 +1,12 @@ +{ + perSystem = { pkgs, inputs', ... }: { + devShells.default = pkgs.mkShellNoCC { + packages = with pkgs; [ + bash + sops + + inputs'.clan-core.packages.clan-cli + ]; + }; + }; +} \ No newline at end of file diff --git a/flake.lock b/flake.lock index fe81cfb..7370d87 100644 --- a/flake.lock +++ b/flake.lock @@ -56,24 +56,6 @@ "url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz" } }, - "devshell": { - "inputs": { - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1741473158, - "narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=", - "owner": "numtide", - "repo": "devshell", - "rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "devshell", - "type": "github" - } - }, "disko": { "inputs": { "nixpkgs": [ @@ -165,22 +147,6 @@ } }, "nixpkgs": { - "locked": { - "lastModified": 1722073938, - "narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_2": { "locked": { "lastModified": 1757745802, "narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=", @@ -199,9 +165,8 @@ "root": { "inputs": { "clan-core": "clan-core", - "devshell": "devshell", "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "systems": "systems_2" } }, diff --git a/flake.nix b/flake.nix index 3633f9c..b010c9a 100644 --- a/flake.nix +++ b/flake.nix @@ -14,10 +14,6 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-parts.follows = "flake-parts"; }; - - devshell = { - url = "github:numtide/devshell"; - }; }; outputs = @@ -31,8 +27,9 @@ flake-parts.flakeModules.modules inputs.clan-core.flakeModules.default inputs.clan-core.flakeModules.testModule - inputs.devshell.flakeModule + + ./devShells/flake-module.nix ./clanServices/flake-module.nix ]; @@ -51,16 +48,5 @@ }; }; }; - - perSystem = { system, pkgs, ... }: { - devshells = { - default = { - packages = [ - pkgs.just - inputs.clan-core.packages.${system}.clan-cli - ]; - }; - }; - }; }); } From 25024f7fbd5c9a052567c667293f9e37e1bd381a Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 22 Sep 2025 08:44:04 +0200 Subject: [PATCH 2/2] . --- clan.nix | 11 +++++++++++ flake.lock | 5 +++-- flake.nix | 27 +++++++++------------------ 3 files changed, 23 insertions(+), 20 deletions(-) create mode 100644 clan.nix diff --git a/clan.nix b/clan.nix new file mode 100644 index 0000000..27d7768 --- /dev/null +++ b/clan.nix @@ -0,0 +1,11 @@ +{ + meta.name = "amarth-services"; + + inventory = { + machines = { + "test-darwin-machine" = { + machineClass = "darwin"; + }; + }; + }; +} \ No newline at end of file diff --git a/flake.lock b/flake.lock index 7370d87..3f19c1b 100644 --- a/flake.lock +++ b/flake.lock @@ -216,8 +216,9 @@ "type": "github" }, "original": { - "id": "systems", - "type": "indirect" + "owner": "nix-systems", + "repo": "default", + "type": "github" } }, "treefmt-nix": { diff --git a/flake.nix b/flake.nix index b010c9a..abfce2a 100644 --- a/flake.nix +++ b/flake.nix @@ -14,20 +14,21 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-parts.follows = "flake-parts"; }; + + systems = { + url = "github:nix-systems/default"; + }; }; outputs = - inputs@{ flake-parts, systems, ... }: + inputs@{ flake-parts, clan-core, systems, ... }: flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: { - systems = [ - "x86_64-linux" - ]; + systems = import systems; imports = [ flake-parts.flakeModules.modules - inputs.clan-core.flakeModules.default - inputs.clan-core.flakeModules.testModule - + clan-core.flakeModules.default + clan-core.flakeModules.testModule ./devShells/flake-module.nix ./clanServices/flake-module.nix @@ -37,16 +38,6 @@ modules = {}; }; - clan = { - meta.name = "amarth-services"; - - inventory = { - machines = { - "test-darwin-machine" = { - machineClass = "darwin"; - }; - }; - }; - }; + clan = import ./clan.nix; }); }