wiiiiips
This commit is contained in:
parent
ac3dac322d
commit
a7a1763fe0
105 changed files with 1152 additions and 1093 deletions
|
|
@ -7,13 +7,13 @@
|
|||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.${namespace}.desktop.cosmic;
|
||||
cfg = config.sneeuwvlok.desktop.cosmic;
|
||||
in {
|
||||
options.${namespace}.desktop.cosmic = {
|
||||
options.sneeuwvlok.desktop.cosmic = {
|
||||
enable =
|
||||
mkEnableOption "Enable Cosmic desktop"
|
||||
// {
|
||||
default = config.${namespace}.desktop.use == "cosmic";
|
||||
default = config.sneeuwvlok.desktop.use == "cosmic";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
inherit (lib) mkIf mkOption mkEnableOption mkMerge;
|
||||
inherit (lib.types) nullOr enum;
|
||||
|
||||
cfg = config.${namespace}.desktop;
|
||||
cfg = config.sneeuwvlok.desktop;
|
||||
in {
|
||||
imports = [
|
||||
./cosmic
|
||||
|
|
@ -16,7 +16,7 @@ in {
|
|||
./plasma
|
||||
];
|
||||
|
||||
options.${namespace}.desktop = {
|
||||
options.sneeuwvlok.desktop = {
|
||||
use = mkOption {
|
||||
type = nullOr (enum ["plasma" "gamescope" "gnome" "cosmic"]);
|
||||
default = null;
|
||||
|
|
@ -33,7 +33,7 @@ in {
|
|||
}
|
||||
|
||||
# (mkIf (cfg.use != null) {
|
||||
# ${namespace}.desktop.${cfg.use}.enable = true;
|
||||
# sneeuwvlok.desktop.${cfg.use}.enable = true;
|
||||
# })
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,23 @@
|
|||
{ lib, config, namespace, ... }:
|
||||
let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkForce;
|
||||
|
||||
cfg = config.${namespace}.desktop.gamescope;
|
||||
in
|
||||
{
|
||||
options.${namespace}.desktop.gamescope = {
|
||||
enable = mkEnableOption "Enable Steamdeck ui" // {
|
||||
default = (config.${namespace}.desktop.use == "gamescope");
|
||||
};
|
||||
cfg = config.sneeuwvlok.desktop.gamescope;
|
||||
in {
|
||||
options.sneeuwvlok.desktop.gamescope = {
|
||||
enable =
|
||||
mkEnableOption "Enable Steamdeck ui"
|
||||
// {
|
||||
default = config.sneeuwvlok.desktop.use == "gamescope";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
${namespace}.desktop.plasma.enable = true;
|
||||
sneeuwvlok.desktop.plasma.enable = true;
|
||||
|
||||
services.displayManager.sddm.enable = mkForce false;
|
||||
services.displayManager.gdm.enable = mkForce false;
|
||||
|
|
|
|||
|
|
@ -1,16 +1,22 @@
|
|||
{ 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" // {
|
||||
default = (config.${namespace}.desktop.use == "gnome");
|
||||
};
|
||||
cfg = config.sneeuwvlok.desktop.gnome;
|
||||
in {
|
||||
options.sneeuwvlok.desktop.gnome = {
|
||||
enable =
|
||||
mkEnableOption "Enable Gnome"
|
||||
// {
|
||||
default = config.sneeuwvlok.desktop.use == "gnome";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
};
|
||||
config =
|
||||
mkIf cfg.enable {
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,20 @@
|
|||
{ 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" // {
|
||||
default = (config.${namespace}.desktop.use == "plasma");
|
||||
};
|
||||
cfg = config.sneeuwvlok.desktop.plasma;
|
||||
in {
|
||||
options.sneeuwvlok.desktop.plasma = {
|
||||
enable =
|
||||
mkEnableOption "Enable KDE Plasma"
|
||||
// {
|
||||
default = config.sneeuwvlok.desktop.use == "plasma";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue