restructure desktop with option config wrappers
This commit is contained in:
@@ -6,9 +6,8 @@
|
|||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
#./hardware-configuration.nix
|
#./hardware-configuration.nix
|
||||||
../../nixos
|
../../nixos
|
||||||
../../../modules/desktop/hypr
|
|
||||||
../../../modules/desktop/greetd
|
|
||||||
../../../users/blake
|
../../../users/blake
|
||||||
|
../../../modules/desktop
|
||||||
../../../modules/system
|
../../../modules/system
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -28,6 +27,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
desktop = {
|
||||||
|
hypr.enable = true;
|
||||||
|
greetd.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# fix power buttons
|
# fix power buttons
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
HandlePowerKey = "suspend";
|
HandlePowerKey = "suspend";
|
||||||
|
|||||||
@@ -3,8 +3,14 @@
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
cfg = config.desktop.greetd;
|
||||||
|
in {
|
||||||
|
options.desktop.hypr = {
|
||||||
|
enable = lib.mkEnableOption "enable greetd with tuigreet";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# tuigreet command to run
|
# tuigreet command to run
|
||||||
@@ -24,4 +30,5 @@
|
|||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
description = "user for greetd";
|
description = "user for greetd";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,12 +3,18 @@
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
cfg = config.desktop.hypr;
|
||||||
|
in {
|
||||||
|
options.desktop.hypr = {
|
||||||
|
enable = lib.mkEnableOption "enable hypr on nixos side";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
# enable hyprland
|
# enable hyprland
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
|
||||||
|
|
||||||
# give hyprlock perms to unlock
|
# give hyprlock perms to unlock
|
||||||
security.pam.services.hyprlock = {};
|
security.pam.services.hyprlock = {};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user