cerulean now manages trivial home-manager options
This commit is contained in:
parent
34a8c23537
commit
1c68485dcf
1 changed files with 20 additions and 0 deletions
20
cerulean/home/default.nix
Normal file
20
cerulean/home/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# NOTE: you can access the system configuration via the `osConfig` arg
|
||||||
|
{
|
||||||
|
username,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# WARNING: required for home-manager to work
|
||||||
|
programs.home-manager.enable = true; # user must apply lib.mkForce
|
||||||
|
# Nicely reload systemd units when changing configs
|
||||||
|
systemd.user.startServices = lib.mkDefault "sd-switch";
|
||||||
|
|
||||||
|
home = {
|
||||||
|
username = lib.mkDefault username;
|
||||||
|
homeDirectory = lib.mkDefault "/home/${username}";
|
||||||
|
|
||||||
|
sessionVariables = {
|
||||||
|
NIX_SHELL_PRESERVE_PROMPT = lib.mkDefault 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue