setup xsession in hm-system-defaults
Hack: Makes sure home manager session variables are set in qtile's environment
This commit is contained in:
parent
4e50a21bdd
commit
cd2d49070f
1 changed files with 8 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }: {
|
||||
{ config, lib, ... }: {
|
||||
home-manager = {
|
||||
extraSpecialArgs = {
|
||||
main = config;
|
||||
|
@ -9,12 +9,14 @@
|
|||
home.sessionVariables = {
|
||||
inherit (config.environment.sessionVariables) NIX_PATH;
|
||||
};
|
||||
xdg.configFile."nix/registry.json".text =
|
||||
config.environment.etc."nix/registry.json".text;
|
||||
}
|
||||
{
|
||||
xdg.enable = true;
|
||||
xdg = {
|
||||
configFile."nix/registry.json".text = config.environment.etc."nix/registry.json".text;
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
(lib.mkIf config.services.xserver.enable {
|
||||
xsession.enable = true;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue