summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-23 22:19:22 -0400
committerseth <[email protected]>2023-08-24 04:21:43 -0400
commitaf6a211d9a763b87b62062ae60826ef88967b3e8 (patch)
tree38d15773d2d9cba2dcf8c30bb19bf2ac247c28df /hosts
parentf324d84bc86db1b4b81c447f536adc24f7731578 (diff)
hosts/profiles+modules: centralize nix/nixpkgs options
Diffstat (limited to 'hosts')
-rw-r--r--hosts/profiles.nix32
1 files changed, 1 insertions, 31 deletions
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";
}
];