Skip to content

Commit

Permalink
nixos/cosmic: init
Browse files Browse the repository at this point in the history
  • Loading branch information
nyabinary committed Dec 26, 2023
1 parent d1fcabe commit e6bc4a2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions nixos/modules/services/x11/desktop-managers/cosmic.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ config, pkgs, lib, utils, ... }:

let
cfg = config.services.xserver.desktopManager.cosmic;
in
{
meta.maintainers = with lib.maintainers; [ nyanbinary ];

options.services.xserver.desktopManager.cosmic = {
enable = lib.mkEnableOption (lib.mdDoc "COSMIC desktop environment");
};

config = lib.mkIf cfg.enable {
# components that need to be in PATH
environment.systemPackages = with pkgs; [
cosmic-applibrary
cosmic-applets
cosmic-bg
cosmic-comp
cosmic-greeter
cosmic-icons
cosmic-launcher
cosmic-notifications
cosmic-osd
cosmic-panel
cosmic-screenshot
cosmic-settings
cosmic-settings-daemon
cosmic-workspaces-epoch
xdg-desktop-portal-cosmic
];

xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-cosmic
];

# session files for display manager and systemd
services.xserver.displayManager.sessionPackages = with pkgs; [ cosmic-session ];
systemd.packages = with pkgs; [ cosmic-session ];
};
}

0 comments on commit e6bc4a2

Please sign in to comment.