From d143c48e9e3c7195674504abd2c85d711b92d1fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 7 May 2023 13:59:01 +0200 Subject: [PATCH] refactor(nix)!: move nix module to programs --- modules/profiles/base.nix | 8 ++++---- modules/{config => programs}/nix.nix | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename modules/{config => programs}/nix.nix (96%) diff --git a/modules/profiles/base.nix b/modules/profiles/base.nix index e2d4b4b..9f35c6a 100644 --- a/modules/profiles/base.nix +++ b/modules/profiles/base.nix @@ -32,10 +32,6 @@ in time.timeZone = "Europe/Berlin"; my = { - nix = { - gc.enable = true; - optimise.enable = true; - }; bin.enable = true; shell = { abbreviations = { @@ -63,6 +59,10 @@ in git.enable = true; gpg.enable = true; navi.enable = true; + nix = { + gc.enable = true; + optimise.enable = true; + }; tmux.enable = true; tmux.keybinds = { prefix = { diff --git a/modules/config/nix.nix b/modules/programs/nix.nix similarity index 96% rename from modules/config/nix.nix rename to modules/programs/nix.nix index 12fcc32..413936f 100644 --- a/modules/config/nix.nix +++ b/modules/programs/nix.nix @@ -6,10 +6,10 @@ with lib; let - cfg = config.my.nix; + cfg = config.my.programs.nix; in { - options.my.nix = { + options.my.programs.nix = { gc = { enable = mkEnableOption "nix-gc"; minimumFreedGB = mkOption {