From 5ab18f41ca1066e0b4b2110573199804a8d4ba56 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 17 Sep 2024 02:13:06 -0700 Subject: [PATCH] chore: enable flakes and nix-command by default in core module --- hosts/adrastea/configuration.nix | 4 ---- hosts/callisto/configuration.nix | 4 ---- hosts/demeter/configuration.nix | 4 ---- modules/linux/core/default.nix | 7 +++++++ 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/hosts/adrastea/configuration.nix b/hosts/adrastea/configuration.nix index fbb534c..3a75540 100755 --- a/hosts/adrastea/configuration.nix +++ b/hosts/adrastea/configuration.nix @@ -149,10 +149,6 @@ "root" "youwen" ]; - experimental-features = [ - "nix-command" - "flakes" - ]; }; services.udev.extraRules = '' diff --git a/hosts/callisto/configuration.nix b/hosts/callisto/configuration.nix index a6b95e8..2708f7b 100755 --- a/hosts/callisto/configuration.nix +++ b/hosts/callisto/configuration.nix @@ -111,10 +111,6 @@ "root" "youwen" ]; - experimental-features = [ - "nix-command" - "flakes" - ]; }; services.udev.extraRules = '' diff --git a/hosts/demeter/configuration.nix b/hosts/demeter/configuration.nix index dece5a1..ee9af72 100755 --- a/hosts/demeter/configuration.nix +++ b/hosts/demeter/configuration.nix @@ -132,10 +132,6 @@ "root" "youwen" ]; - experimental-features = [ - "nix-command" - "flakes" - ]; }; services.udev.extraRules = '' diff --git a/modules/linux/core/default.nix b/modules/linux/core/default.nix index 1e7ea9d..5de3c26 100644 --- a/modules/linux/core/default.nix +++ b/modules/linux/core/default.nix @@ -22,4 +22,11 @@ }; services.gnome.gnome-keyring.enable = true; + + nix = { + settings.experimental-features = [ + "nix-command" + "flakes" + ]; + }; }