Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Jul 5, 2024
1 parent 53b102a commit 5c9be2d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion hosts/x1/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
remotebuild
transmission
syncthing
work-vpn
work
yubikey
])
(with inputs.nixos-hardware.nixosModules; [
Expand Down
2 changes: 1 addition & 1 deletion hosts/zeus/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
remotebuild
syncthing
transmission
work-vpn
work
yubikey
])
(with inputs.nixos-hardware.nixosModules; [
Expand Down
32 changes: 9 additions & 23 deletions modules/common.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
lib,
pkgs,
user,
...
Expand Down Expand Up @@ -33,29 +32,16 @@

nixpkgs.config.allowUnfree = true;

nix = {
settings = {
substituters = [
"https://nix-gaming.cachix.org"
"https://joinemm.cachix.org"
"https://cache.vedenemo.dev"
];
trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"joinemm.cachix.org-1:aMZBO1baRjhaI5QzePLelFz/GJ82fZOjmiHQwCl1FxI="
"cache.vedenemo.dev:8NhplARANhClUSWJyLVk4WMyy1Wb4rhmWW2u8AejH9E="
];
nix.settings = {
max-jobs = "auto";
trusted-users = ["root" "@wheel"];
experimental-features = ["nix-command" "flakes"];

trusted-users = ["root" "@wheel"];
experimental-features = ["nix-command" "flakes"];
allow-import-from-derivation = true;

max-jobs = 2;
auto-optimise-store = true;
builders-use-substitutes = true;
keep-derivations = true;
keep-outputs = true;
};
allow-import-from-derivation = true;
auto-optimise-store = true;
builders-use-substitutes = true;
keep-derivations = true;
keep-outputs = true;
};

users.users."${user.name}" = {
Expand Down
2 changes: 1 addition & 1 deletion modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
ssh-access = import ./ssh-access.nix;
syncthing = import ./syncthing.nix;
transmission = import ./transmission.nix;
work-vpn = import ./work-vpn.nix;
work = import ./work.nix;
yubikey = import ./yubikey.nix;
}
Empty file added modules/dev.nix
Empty file.
9 changes: 9 additions & 0 deletions modules/work-vpn.nix → modules/work.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,13 @@
};
};
};

nix.settings = {
substituters = [
"https://cache.vedenemo.dev"
];
trusted-public-keys = [
"cache.vedenemo.dev:8NhplARANhClUSWJyLVk4WMyy1Wb4rhmWW2u8AejH9E="
];
};
}

0 comments on commit 5c9be2d

Please sign in to comment.