blob: d3c42f36583dcbb7c2b91d4968c10ec690f23d55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ flake, flakeInputs, path, userName, config, lib, utils, ... }:
with lib;
{
config = {
users.users.${userName} = {}; # Just make sure the user is created
home-manager.users.${userName} = {
config.nix.settings.use-xdg-base-directories = lib.mkDefault true;
};
systemd.services."home-manager-${utils.escapeSystemdPath userName}" = lib.mkIf (!config.home-manager.enableSystemd) {
restartIfChanged = false; # only run once on startup, deploy to running system with deploy-rs
};
};
}
|