From 289b29a976fb37b3f7fe8b152d6bd5c7a132a6a1 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 19 Jul 2023 22:34:43 -0400 Subject: parts: cleanup inherits/functions --- hosts/profiles.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'hosts') diff --git a/hosts/profiles.nix b/hosts/profiles.nix index 349028a..4e6d019 100644 --- a/hosts/profiles.nix +++ b/hosts/profiles.nix @@ -1,14 +1,12 @@ { inputs, self, -}: let - inherit (inputs) getchoo home-manager nixpkgs nixpkgs-stable nur ragenix; -in { +}: { personal = { system = "x86_64-linux"; - builder = nixpkgs.lib.nixosSystem; + builder = inputs.nixpkgs.lib.nixosSystem; - modules = [ + modules = with inputs; [ ragenix.nixosModules.default home-manager.nixosModules.home-manager nur.nixosModules.nur @@ -28,7 +26,7 @@ in { }; nixpkgs = { - overlays = [nur.overlay getchoo.overlays.default self.overlays.default]; + overlays = with inputs; [nur.overlay getchoo.overlays.default self.overlays.default]; config.allowUnfree = true; }; @@ -64,9 +62,9 @@ in { }; server = { - builder = nixpkgs-stable.lib.nixosSystem; + builder = inputs.nixpkgs-stable.lib.nixosSystem; - modules = [ + modules = with inputs; [ ragenix.nixosModules.default ../modules/nixos/base ../modules/nixos/server -- cgit v1.2.3