From af6a211d9a763b87b62062ae60826ef88967b3e8 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 23 Aug 2023 22:19:22 -0400 Subject: hosts/profiles+modules: centralize nix/nixpkgs options --- hosts/profiles.nix | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'hosts') diff --git a/hosts/profiles.nix b/hosts/profiles.nix index 21b0be3..ab1122b 100644 --- a/hosts/profiles.nix +++ b/hosts/profiles.nix @@ -2,34 +2,6 @@ inputs, self, }: let - common = { - nixpkgs = { - overlays = with inputs; [nur.overlay getchoo.overlays.default self.overlays.default]; - config.allowUnfree = true; - }; - - nix = { - registry = - { - n.flake = inputs.nixpkgs; - } - // (builtins.mapAttrs (_: flake: {inherit flake;}) - (inputs.nixpkgs.lib.filterAttrs (n: _: n != "nixpkgs") inputs)); - - settings = { - trusted-substituters = [ - "https://getchoo.cachix.org" - "https://nix-community.cachix.org" - ]; - - trusted-public-keys = [ - "getchoo.cachix.org-1:ftdbAUJVNaFonM0obRGgR5+nUmdLMM+AOvDOSx0z5tE=" - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - ]; - }; - }; - }; - specialArgs = inputs // {inherit inputs;}; in { personal = { @@ -38,7 +10,6 @@ in { inherit specialArgs; modules = with inputs; [ - common ragenix.nixosModules.default home-manager.nixosModules.home-manager nur.nixosModules.nur @@ -67,7 +38,6 @@ in { builder = inputs.darwin.lib.darwinSystem; inherit specialArgs; modules = with inputs; [ - common home-manager.darwinModules.home-manager ../users/seth @@ -130,7 +100,7 @@ in { enabledCollectors = ["systemd"]; }; - nix.registry.nixpkgs.flake = nixpkgs-stable; + nix.registry.n.flake = nixpkgs-stable; system.stateVersion = "23.05"; } ]; -- cgit v1.2.3