more progress

This commit is contained in:
Chris Kruining 2025-07-24 11:33:23 +02:00
parent a03240d99d
commit f1c89a0ec1
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
31 changed files with 256 additions and 487 deletions

View file

@ -1,4 +1,4 @@
{ lib, config, namespace, ... }:
{ lib, config, namespace, inputs, ... }:
let
inherit (lib) mkIf mkOption mkEnableOption mkMerge;
inherit (lib.types) nullOr enum;
@ -6,6 +6,10 @@ let
cfg = config.${namespace}.desktop;
in
{
imports = [
inputs.grub2-themes.nixosModules.default
];
options.${namespace}.desktop = {
use = mkOption {
type = nullOr (enum [ "plasma" "gamescope" "gnome" ]);
@ -28,8 +32,8 @@ in
};
})
(mkIf (cfg.use != null) {
${namespace}.desktop.${cfg.use}.enable = true;
})
# (mkIf (cfg.use != null) {
# ${namespace}.desktop.${cfg.use}.enable = true;
# })
];
}

View file

@ -1,4 +1,5 @@
{ lib, config, namespace, inputs, ... }:let
{ lib, config, namespace, inputs, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.desktop.gamescope;
@ -7,11 +8,13 @@ in
imports = [ inputs.jovian.nixosModules.default ];
options.${namespace}.desktop.gamescope = {
enable = mkEnableOption "Enable Steamdeck ui";
enable = mkEnableOption "Enable Steamdeck ui" // {
default = (config.${namespace}.desktop.use == "gamescope");
};
};
config = mkIf cfg.enable {
"${namespace}".desktop.kde.enable = true;
${namespace}.desktop.plasma.enable = true;
jovian = {
steam = {

View file

@ -1,11 +1,14 @@
{ lib, config, namespace, ... }:let
{ lib, config, namespace, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.desktop.gnome;
in
{
options.${namespace}.desktop.gnome = {
enable = mkEnableOption "Enable Gnome";
enable = mkEnableOption "Enable Gnome" // {
default = (config.${namespace}.desktop.use == "gnome");
};
};
config = mkIf cfg.enable {

View file

@ -1,11 +1,14 @@
{ pkgs, lib, config, namespace, ... }:let
{ pkgs, lib, config, namespace, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.desktop.plasma;
in
{
options.${namespace}.desktop.plasma = {
enable = mkEnableOption "Enable KDE Plasma";
enable = mkEnableOption "Enable KDE Plasma" // {
default = (config.${namespace}.desktop.use == "plasma");
};
};
config = mkIf cfg.enable {