Option: added active desktop option which allows kde to be primary desktop environment.
This commit is contained in:
parent
d233e18593
commit
f622009e87
17 changed files with 82 additions and 60 deletions
|
|
@ -5,20 +5,21 @@
|
|||
...
|
||||
}: let
|
||||
inherit (config.niksos) hardware desktop;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib) mkIf;
|
||||
uwsm = lib.getExe pkgs.uwsm;
|
||||
foot = lib.getExe pkgs.foot;
|
||||
hypr = config.programs.hyprland.enable;
|
||||
in {
|
||||
config = mkIf hardware.fingerprint {
|
||||
services = {
|
||||
fprintd.enable = true;
|
||||
logind.extraConfig = mkIf desktop.hyprland ''
|
||||
logind.extraConfig = mkIf hypr ''
|
||||
# don’t shutdown when power button is short-pressed
|
||||
HandlePowerKey=ignore
|
||||
'';
|
||||
};
|
||||
|
||||
home-manager.users.jsw.wayland.windowManager.hyprland.settings = mkIf desktop.hyprland {
|
||||
home-manager.users.jsw.wayland.windowManager.hyprland.settings = mkIf hypr {
|
||||
bind = [
|
||||
", XF86PowerOff, exec, ${uwsm} app -- pgrep fprintd-verify && exit 0 || ${foot} -a 'foot-fprintd' sh -c 'fprintd-verify && systemctl sleep'"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) optionals mkEnableOption mkDefault;
|
||||
inherit (lib) optionals mkDefault;
|
||||
inherit (config.niksos.hardware) graphics;
|
||||
inherit (graphics) enable nvidia intel;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
config.services = lib.mkIf config.niksos.hardware.joycond {
|
||||
services = lib.mkIf config.niksos.hardware.joycond {
|
||||
usbmuxd.enable = true;
|
||||
joycond.enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ in {
|
|||
power-profiles-daemon.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = lib.mkIf niksos.desktop.hyprland [
|
||||
environment.systemPackages = lib.mkIf config.programs.hyprland.enable [
|
||||
(pkgs.writeScriptBin "powermode" ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue