From f26c55d5bea46e0b4c0bed3ef3a1258b1b9e82dc Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sat, 12 Oct 2024 17:15:08 +0000 Subject: update --- lib/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index f677a89..960a7a4 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -33,16 +33,8 @@ inputs: lib: prev: with lib; rec { }: let machine = machines.${name}; - homeManagerModule = (if lib.hasInfix "darwin" system then - [inputs.home-manager.darwinModules.default] - else - [inputs.home-manager.nixosModules.default]); - systemForPlatform = (if lib.hasInfix "darwin" system then - lib.darwinSystem - else - lib.nixosSystem); in - systemForPlatform { + lib.nixosSystem { inherit lib system; specialArgs = { inherit (inputs) self; @@ -51,7 +43,10 @@ inputs: lib: prev: with lib; rec { modules = modules ++ - homeManagerModule + (if lib.hasInfix "darwin" system then + [inputs.home-manager.darwinModules.default] + else + [inputs.home-manager.nixosModules.default]) ++ [ ({pkgs, ...}: { nixpkgs.overlays = with lib; [ -- cgit v1.2.3