Restructure systemd services definition. Add environment variables
This commit is contained in:
parent
0da88333a4
commit
76adba6741
@ -54,7 +54,10 @@ in
|
|||||||
./home-manager/fish.nix
|
./home-manager/fish.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.user.services = {
|
systemd.user = {
|
||||||
|
# user services
|
||||||
|
services = {
|
||||||
|
# ssh-agent user service
|
||||||
ssh-agent = {
|
ssh-agent = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "SSH key agent";
|
Description = "SSH key agent";
|
||||||
@ -69,6 +72,11 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# user environment variables
|
||||||
|
sessionVariables = {
|
||||||
|
SSH_AUTH_SOCK = "/run/user/1000/ssh-agent.socket";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.mako.enable = true;
|
services.mako.enable = true;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user