summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-07-08 10:01:56 -0400
committerFreya Murphy <freya@freyacat.org>2025-07-08 10:01:56 -0400
commitc5a39a40e93e3afce386d89e33e2a35d01bd1f00 (patch)
tree0e2dee1e65616dd02bf6a7e68e5591a5934dbf45
parentfmt (diff)
downloaddotfiles-nix-c5a39a40e93e3afce386d89e33e2a35d01bd1f00.tar.gz
dotfiles-nix-c5a39a40e93e3afce386d89e33e2a35d01bd1f00.tar.bz2
dotfiles-nix-c5a39a40e93e3afce386d89e33e2a35d01bd1f00.zip
move nixpkgs settings inside base module
-rw-r--r--modules/options.nix3
-rw-r--r--system/default.nix6
2 files changed, 3 insertions, 6 deletions
diff --git a/modules/options.nix b/modules/options.nix
index 1b120be..bfc61e3 100644
--- a/modules/options.nix
+++ b/modules/options.nix
@@ -389,6 +389,9 @@ in {
};
config = {
+ # allow flakes
+ nix.settings.experimental-features = ["nix-command" "flakes"];
+
# use system packages in home manager
home-manager.useGlobalPkgs = true;
diff --git a/system/default.nix b/system/default.nix
index a630717..3cf065c 100644
--- a/system/default.nix
+++ b/system/default.nix
@@ -14,12 +14,6 @@
./sshd.nix
];
- # allow flakes
- nix.settings.experimental-features = ["nix-command" "flakes"];
-
- # allow unfree packages
- nixpkgs.config.allowUnfree = true;
-
# hostname
networking.hostName = config.hostName;