home-manager: fix standalone config
This commit is contained in:
parent
2dd9bea706
commit
073e578141
|
@ -133,7 +133,10 @@
|
|||
homeConfigurations.lelgenio = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
osConfig = {};
|
||||
};
|
||||
|
||||
modules = [ ./user/home.nix ];
|
||||
};
|
||||
|
|
|
@ -20,7 +20,7 @@ in
|
|||
"tray"
|
||||
"custom/caffeine"
|
||||
"pulseaudio"
|
||||
(lib.optional osConfig.services.vpn.enable "custom/vpn")
|
||||
(lib.optional (osConfig.services.vpn.enable or false) "custom/vpn")
|
||||
"network"
|
||||
"battery"
|
||||
];
|
||||
|
@ -110,7 +110,7 @@ in
|
|||
interval = 1;
|
||||
tooltip = false;
|
||||
};
|
||||
"custom/vpn" = lib.mkIf osConfig.services.vpn.enable {
|
||||
"custom/vpn" = lib.mkIf (osConfig.services.vpn.enable or false) {
|
||||
format = "{}";
|
||||
exec = ''
|
||||
mullvad status | grep "^Connected" > /dev/null \
|
||||
|
|
Loading…
Reference in a new issue