From a1aa8f0b25ce7558358952f3823291b2e817d410 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Thu, 15 Aug 2024 22:00:29 +0200 Subject: [PATCH] Refactor nix experimental-features to use on home and system side --- modules/common.nix | 5 +++++ modules/home/default.nix | 2 +- modules/system/common.nix | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 modules/common.nix diff --git a/modules/common.nix b/modules/common.nix new file mode 100644 index 0000000..c7eb3e6 --- /dev/null +++ b/modules/common.nix @@ -0,0 +1,5 @@ +{ ... }: + +{ + nix.settings.experimental-features = [ "nix-command" "flakes" ]; +} \ No newline at end of file diff --git a/modules/home/default.nix b/modules/home/default.nix index 92279a8..ee5f717 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -2,6 +2,7 @@ { imports = [ + ../common.nix ./apps ./desktop ./shell @@ -15,6 +16,5 @@ }; programs.home-manager.enable = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; } diff --git a/modules/system/common.nix b/modules/system/common.nix index 72c39a6..5838226 100644 --- a/modules/system/common.nix +++ b/modules/system/common.nix @@ -1,6 +1,10 @@ { pkgs, ... }: { + imports = [ + ../common.nix + ]; + # Set your time zone. time.timeZone = "Europe/Paris";