mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
28 lines
494 B
Nix
28 lines
494 B
Nix
{ currentSystemDe, lib, ... }:
|
|
let
|
|
ifDesktop = de: content: {
|
|
_type = "if";
|
|
condition = currentSystemDe == de;
|
|
inherit content;
|
|
};
|
|
ifNotDesktop = de: content: {
|
|
_type = "if";
|
|
condition = currentSystemDe != de;
|
|
inherit content;
|
|
};
|
|
ifGnome = ifDesktop "gnome";
|
|
ifPlasma = ifDesktop "plasma";
|
|
ifNone = ifDesktop "none";
|
|
ifNotNone = ifNotDesktop "none";
|
|
in
|
|
{
|
|
inherit
|
|
ifDesktop
|
|
ifNotDesktop
|
|
ifGnome
|
|
ifPlasma
|
|
ifNone
|
|
ifNotNone
|
|
;
|
|
}
|