From 35d6c2c70824cf77ef2216889cc9730b622f5ac1 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 13 Sep 2024 15:04:06 +0200 Subject: big push --- nix/lib/flake-helper.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nix/lib/flake-helper.nix') diff --git a/nix/lib/flake-helper.nix b/nix/lib/flake-helper.nix index 37e7b1f..b720232 100644 --- a/nix/lib/flake-helper.nix +++ b/nix/lib/flake-helper.nix @@ -36,7 +36,10 @@ rec { modules = modules ++ [ - self.nixosModules.emile + (if system == "x86_64-linux" then self.nixosModules.x86_64-linux + else + if system == "aarch64-darwin" then ({}) + else null) # a module so that we can access the flake output from inside the # flake (yes, I need this for fetching the system type while building the hosts for deploy-rs) @@ -46,6 +49,7 @@ rec { ({ ... }: { nixpkgs.overlays = [ self.overlays.emile + (_: _: { inherit (agenix.packages."x86_64-linux") agenix; }) (_: _: { unstable = import nixpkgs-unstable { -- cgit 1.4.1