From 9d9d5e240f3eec08f6362c66141c0f0bf53309d8 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 2 Oct 2023 18:15:50 +0800 Subject: [PATCH] config: disable user-dirs generation for homeConfigurations --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 228065e9..c90749c3 100644 --- a/flake.nix +++ b/flake.nix @@ -356,6 +356,11 @@ path = ./users/home-manager/${name}; extraModules = [ ({ pkgs, config, ... }: { + # Don't create the user directories since they are assumed to + # be already created by a pre-installed system (which should + # already handle them). + xdg.userDirs.createDirectories = false; + # To be able to use the most of our config as possible, we want # both to use the same overlays. nixpkgs.overlays = overlays;