Skip to content

Commit

Permalink
Move cachix out of shared modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinlyons committed Sep 19, 2024
1 parent 4089894 commit d755277
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 55 deletions.
48 changes: 24 additions & 24 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions hosts/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ let user = "dustin"; in
../../modules/darwin/secrets.nix
../../modules/darwin/home-manager.nix
../../modules/shared
../../modules/shared/cachix
agenix.darwinModules.default
];

Expand All @@ -17,8 +16,11 @@ let user = "dustin"; in
# Setup user, packages, programs
nix = {
package = pkgs.nix;
settings.trusted-users = [ "@admin" "${user}" ];

settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

gc = {
user = "root";
automatic = true;
Expand Down
5 changes: 4 additions & 1 deletion hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ let user = "dustin";
../../modules/nixos/secrets.nix
../../modules/nixos/disk-config.nix
../../modules/shared
../../modules/shared/cachix
agenix.nixosModules.default
];

Expand Down Expand Up @@ -41,6 +40,10 @@ let user = "dustin";
nix = {
nixPath = [ "nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos" ];
settings.allowed-users = [ "${user}" ];
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

package = pkgs.nix;
extraOptions = ''
experimental-features = nix-command flakes
Expand Down
3 changes: 2 additions & 1 deletion templates/starter-with-secrets/hosts/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ let user = "%USER%"; in
../../modules/darwin/secrets.nix
../../modules/darwin/home-manager.nix
../../modules/shared
../../modules/shared/cachix
agenix.darwinModules.default
];

Expand All @@ -19,6 +18,8 @@ let user = "%USER%"; in
nix = {
package = pkgs.nix;
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

gc = {
user = "root";
Expand Down
5 changes: 4 additions & 1 deletion templates/starter-with-secrets/hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ let user = "%USER%";
../../modules/nixos/secrets.nix
../../modules/nixos/disk-config.nix
../../modules/shared
../../modules/shared/cachix
agenix.nixosModules.default
];

Expand Down Expand Up @@ -43,6 +42,10 @@ let user = "%USER%";
nix = {
nixPath = [ "nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos" ];
settings.allowed-users = [ "${user}" ];
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

package = pkgs.nix;
extraOptions = ''
experimental-features = nix-command flakes
Expand Down
12 changes: 0 additions & 12 deletions templates/starter-with-secrets/modules/shared/cachix/default.nix

This file was deleted.

3 changes: 2 additions & 1 deletion templates/starter/hosts/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ let user = "%USER%"; in
imports = [
../../modules/darwin/home-manager.nix
../../modules/shared
../../modules/shared/cachix
];

# Auto upgrade nix package and the daemon service.
Expand All @@ -17,6 +16,8 @@ let user = "%USER%"; in
nix = {
package = pkgs.nix;
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

gc = {
user = "root";
Expand Down
5 changes: 4 additions & 1 deletion templates/starter/hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ let user = "%USER%";
imports = [
../../modules/nixos/disk-config.nix
../../modules/shared
../../modules/shared/cachix
];

# Use the systemd-boot EFI boot loader.
Expand Down Expand Up @@ -41,6 +40,10 @@ let user = "%USER%";
nix = {
nixPath = [ "nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos" ];
settings.allowed-users = [ "${user}" ];
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

package = pkgs.nix;
extraOptions = ''
experimental-features = nix-command flakes
Expand Down
12 changes: 0 additions & 12 deletions templates/starter/modules/shared/cachix/default.nix

This file was deleted.

0 comments on commit d755277

Please sign in to comment.