Task: moved hardware options into the niksos.hardware suboptions.

This commit is contained in:
Jurn Wubben 2025-07-09 00:22:25 +02:00
parent 0924f9c267
commit 678c3cb4f7
15 changed files with 99 additions and 82 deletions

View file

@ -5,8 +5,9 @@
lib,
...
}: let
inherit (osConfig.niksos) desktop bluetooth;
inherit (osConfig.niksos) desktop hardware;
inherit (desktop) games;
inherit (hardware) bluetooth;
in {
# Also look at system/programs/games.nix (some programs have to be overlayed or have systemwide modules that have to be installed.)
home.packages = lib.mkIf games ([

View file

@ -4,25 +4,27 @@
osConfig,
inputs,
...
}: {
}: let
inherit (lib) optionals;
inherit (osConfig.niksos.hardware) bluetooth portable;
in {
home.packages =
[
pkgs.ripgrep
pkgs.p7zip
pkgs.dua
pkgs.ffmpeg
pkgs.usbutils
pkgs.pciutils
pkgs.inetutils
pkgs.aria2
pkgs.dua
pkgs.file
pkgs.ffmpeg
pkgs.gurk-rs
pkgs.playerctl
]
++ lib.optionals osConfig.niksos.bluetooth [
++ optionals bluetooth [
pkgs.ear2ctl
]
++ lib.optionals osConfig.niksos.portable.enable [
++ optionals portable.enable [
inputs.somcli.defaultPackage.${pkgs.system}
];
}

View file

@ -8,7 +8,8 @@
}: let
inherit (lib) getExe;
inherit (config.lib.stylix.colors) base0D;
inherit (osConfig.niksos) desktop portable bluetooth;
inherit (osConfig.niksos) desktop hardware;
inherit (hardware) portable bluetooth;
inherit (desktop) games;
runOnce = program: "pgrep ${program} || uwsm app -- ${program}";

View file

@ -26,7 +26,7 @@ in {
"${uwsm} finalize"
"${hyprlock}" # Lock screen
]
++ lib.optional osConfig.niksos.portable.enable "powermode sync";
++ lib.optional osConfig.niksos.hardware.portable.enable "powermode sync";
};
};
}

View file

@ -15,7 +15,7 @@ in {
hide_cursor = false;
no_fade_in = true;
};
auth."fingerprint:enabled" = true;
auth."fingerprint:enabled" = osConfig.niksos.hardware.fingerprint;
label = [
{