From 9f55e8bc0fb7cf1b0204652871808130a45e8eee Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 13 Jan 2021 08:36:07 +0000 Subject: modules/home: remove I think when I implemented this I didn't know about tmpfiles.d(5). Now I do, so let's use that instead. I don't think the imperativeNix option is necessary any more since the home directory is created read-only, but if it turns out that .nix-defexpr and .nix-profile are coming back, I can look into the best way to solve that then. --- modules/nix/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/nix/default.nix') diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 9a50dd985eb3..b016ab7ba9d5 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -5,8 +5,6 @@ let isDarwin = options.environment ? "darwinConfig"; in { - home.qyliss.dirs."state/nix" = {}; - nix.nixPath = [ "nixos-config=/run/current-system/nixlib/sys/${config.networking.hostName}.nix" "/run/current-system/nixlib" @@ -30,4 +28,9 @@ in { services = lib.optionalAttrs isDarwin { nix-daemon.enable = true; }; + + systemd.tmpfiles.rules = [ + "d ${config.users.users.qyliss.home}/state/nix 0700 qyliss qyliss" + ]; + } -- cgit 1.4.1