From 71db968efe660e5f892d947e36527de73cd0e8d2 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 11 May 2024 21:36:27 -0400 Subject: [PATCH] desktop: added cinnamon module --- nixosModules/desktop/cinnamon/default.nix | 23 +++++++++++++++++++++++ nixosModules/desktop/default.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 nixosModules/desktop/cinnamon/default.nix diff --git a/nixosModules/desktop/cinnamon/default.nix b/nixosModules/desktop/cinnamon/default.nix new file mode 100644 index 00000000..bdca1d94 --- /dev/null +++ b/nixosModules/desktop/cinnamon/default.nix @@ -0,0 +1,23 @@ +{ + pkgs, + lib, + config, + ... +}: { + options = { + alyraffauf.desktop.cinnamon.enable = + lib.mkEnableOption "Cinnamon desktop session."; + }; + + config = lib.mkIf config.alyraffauf.desktop.cinnamon.enable { + # Enable Cinnamon. + services = { + xserver = { + enable = true; + desktopManager.cinnamon = { + enable = true; + }; + }; + }; + }; +} diff --git a/nixosModules/desktop/default.nix b/nixosModules/desktop/default.nix index 9c0674f0..aa2f4ddd 100644 --- a/nixosModules/desktop/default.nix +++ b/nixosModules/desktop/default.nix @@ -6,6 +6,7 @@ }: { imports = [ ./budgie + ./cinnamon ./gnome ./greetd ./hyprland