mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-12-22 05:52:56 -05:00
hm: handle absent osConfig
This commit is contained in:
parent
008d46e505
commit
70c5676e59
|
@ -49,7 +49,7 @@
|
|||
"file://${config.home.homeDirectory}/src"
|
||||
]
|
||||
++ lib.optional (
|
||||
osConfig.ar.users.aly.syncthing.enable
|
||||
(osConfig.ar.users.aly.syncthing.enable or false)
|
||||
&& (config.home.username == "aly")
|
||||
) "file://${config.home.homeDirectory}/sync";
|
||||
|
||||
|
|
|
@ -96,20 +96,20 @@ in {
|
|||
desktop = {
|
||||
autoSuspend = lib.mkOption {
|
||||
description = "Whether to autosuspend on idle.";
|
||||
default = cfg.desktop.hyprland.enable;
|
||||
default = cfg.desktop.hyprland.enable or false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
gnome.enable = lib.mkOption {
|
||||
description = "GNOME with sane defaults.";
|
||||
default = osConfig.ar.desktop.gnome.enable;
|
||||
default = osConfig.ar.desktop.gnome.enable or false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
hyprland = {
|
||||
enable = lib.mkOption {
|
||||
description = "Hyprland with full desktop session components.";
|
||||
default = osConfig.ar.desktop.hyprland.enable;
|
||||
default = osConfig.ar.desktop.hyprland.enable or false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
|
@ -138,7 +138,7 @@ in {
|
|||
|
||||
kde.enable = lib.mkOption {
|
||||
description = "KDE Plasma with sane defaults.";
|
||||
default = osConfig.ar.desktop.kde.enable;
|
||||
default = osConfig.ar.desktop.kde.enable or false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
|
@ -162,7 +162,7 @@ in {
|
|||
|
||||
laptopMode = lib.mkOption {
|
||||
description = "Enable laptop configuration.";
|
||||
default = osConfig.ar.laptopMode;
|
||||
default = osConfig.ar.laptopMode or false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue