add plasma

This commit is contained in:
Sean Buckley 2021-03-09 22:54:12 -05:00
parent debb505816
commit 90ea4e005b
2 changed files with 11 additions and 1 deletions

9
modules/plasma.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }:
{
services.xserver = {
enable = true;
libinput.enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
}

View file

@ -5,7 +5,7 @@ let
in
{
options.sconfig.profile = mkOption {
type = types.enum [ "server" "desktop-gnome" "desktop-sway" ];
type = types.enum [ "server" "desktop-gnome" "desktop-sway" "desktop-plasma" ];
};
config = mkMerge [
@ -17,6 +17,7 @@ in
(mkIf (cfg == "desktop-sway") (import ./sway.nix { inherit pkgs; }))
(mkIf (cfg == "desktop-gnome") (import ./gnome.nix { inherit pkgs; }))
(mkIf (cfg == "desktop-plasma") (import ./plasma.nix { inherit pkgs; }))
(mkIf ("desktop-" == builtins.substring 0 8 cfg) (mkMerge [
(import ./security-tools.nix { inherit pkgs; })