From 2e5899b22eda2561c332daa91cc375b2cb5fcfe9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 17 Apr 2023 21:00:36 +0100 Subject: [PATCH] WIP --- modules/home/nix/default.nix | 4 ++++ modules/nixos/system/nix/default.nix | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/modules/home/nix/default.nix b/modules/home/nix/default.nix index 9ccbdc5..8e777da 100644 --- a/modules/home/nix/default.nix +++ b/modules/home/nix/default.nix @@ -48,7 +48,11 @@ in nix = { package = lib.mkDefault pkgs.nix; # NixOS module sets it unconditionally + # FIXME: waiting on https://github.com/nix-community/home-manager/pull/3876 settings = { + # I like XDG-compliance + use-xdg-base-directories = true; + experimental-features = [ "nix-command" "flakes" ]; }; }; diff --git a/modules/nixos/system/nix/default.nix b/modules/nixos/system/nix/default.nix index 47d6499..365e84f 100644 --- a/modules/nixos/system/nix/default.nix +++ b/modules/nixos/system/nix/default.nix @@ -54,7 +54,12 @@ in nix = { package = pkgs.nix; + # FIXME: waiting on https://github.com/NixOS/nixpkgs/pull/146515 + # FIXME: look at https://github.com/SuperSandro2000/nixos-modules/blob/master/modules/nix.nix settings = { + # I like XDG-compliance + use-xdg-base-directories = true; + experimental-features = [ "nix-command" "flakes" ]; }; };