diff options
| author | seth <[email protected]> | 2023-05-05 02:44:22 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-05 02:44:22 -0400 |
| commit | 3051d75c5ebe4284a6d50f1ea2b3a2f39e01a38d (patch) | |
| tree | 913db0783129b37a76a538cf9743afc2365dbee8 /modules/server/default.nix | |
| parent | 4f1cc719a12ed27b23f2830489db3845c36c88ed (diff) | |
flake: restructure a lot
Diffstat (limited to 'modules/server/default.nix')
| -rw-r--r-- | modules/server/default.nix | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/modules/server/default.nix b/modules/server/default.nix index cce7625..9692a82 100644 --- a/modules/server/default.nix +++ b/modules/server/default.nix @@ -9,6 +9,11 @@ in { options.getchoo.server.enable = mkEnableOption "enable server configuration"; + imports = [ + ./secrets.nix + ./services + ]; + config = mkIf cfg.enable { getchoo = { base = { @@ -34,7 +39,25 @@ in { }; }; - nix.gc.options = "--delete-older-than 7d --max-freed 50G"; + nix = { + gc.options = "--delete-older-than 7d --max-freed 50G"; + settings = { + trusted-users = ["${config.networking.hostName}"]; + trusted-substituters = [ + "https://getchoo.cachix.org" + "https://nix-community.cachix.org" + "https://hercules-ci.cachix.org" + "https://wurzelpfropf.cachix.org" + ]; + + trusted-public-keys = [ + "getchoo.cachix.org-1:ftdbAUJVNaFonM0obRGgR5+nUmdLMM+AOvDOSx0z5tE=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0=" + "wurzelpfropf.cachix.org-1:ilZwK5a6wJqVr7Fyrzp4blIEkGK+LJT0QrpWr1qBNq0=" + ]; + }; + }; programs = { git.enable = mkDefault true; |
