summaryrefslogtreecommitdiff
path: root/parts/modules/shared/base/nix.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-10-30 04:22:32 -0400
committerseth <[email protected]>2023-10-30 09:46:15 +0000
commit10b0df38b4286237b56ff9177f8d4c5676bfb5c1 (patch)
treeab298c74339bf9bc41571fa88746ecd9c522fbdf /parts/modules/shared/base/nix.nix
parent4c2c60a4f2b14c1e6ffaffe5e301dc31ac4fed0f (diff)
tree-wide: refactor
i went overboard on modules. this is much comfier
Diffstat (limited to 'parts/modules/shared/base/nix.nix')
-rw-r--r--parts/modules/shared/base/nix.nix42
1 files changed, 0 insertions, 42 deletions
diff --git a/parts/modules/shared/base/nix.nix b/parts/modules/shared/base/nix.nix
deleted file mode 100644
index 2c95933..0000000
--- a/parts/modules/shared/base/nix.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- config,
- inputs,
- lib,
- pkgs,
- ...
-}: let
- cfg = config.base.nix-settings;
- inherit (lib) mkDefault mkEnableOption mkIf;
- inherit (pkgs.stdenv) isLinux;
-in {
- options.base.nix-settings.enable = mkEnableOption "base nix settings";
-
- config = mkIf cfg.enable {
- nix = {
- registry =
- {
- n.flake = mkDefault inputs.nixpkgs;
- }
- // (builtins.mapAttrs (_: flake: {inherit flake;})
- (inputs.nixpkgs.lib.filterAttrs (n: _: n != "nixpkgs") inputs));
-
- settings = {
- auto-optimise-store = isLinux;
- experimental-features = ["nix-command" "flakes" "auto-allocate-uids" "repl-flake"];
-
- trusted-substituters = ["https://cache.garnix.io"];
- trusted-public-keys = ["cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="];
- };
-
- gc = {
- automatic = mkDefault true;
- options = mkDefault "--delete-older-than 7d";
- };
- };
-
- nixpkgs = {
- overlays = with inputs; [nur.overlay getchoo.overlays.default self.overlays.default];
- config.allowUnfree = true;
- };
- };
-}