aboutsummaryrefslogtreecommitdiff
path: root/modules/profiles/cosmic/default.nix
blob: 8a7984551fefa52874d2f7753beaa71914c8ebc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ inputs, pkgs, ... }:
{
  imports = [
    inputs.nixos-cosmic.nixosModules.default
  ];

  # Setup binary substituter so we don't have to build everything from source.
  # If this is a first time setup, comment out the code below the nix.settings
  # attrset and run `sudo nixos-rebuild test` to update the substituters.
  nix.settings = {
    substituters = [ "https://cosmic.cachix.org" ];
    trusted-public-keys = [
      "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
    ];
  };

  # Enable COSMIC!
  services.desktopManager.cosmic.enable = true;
  services.displayManager.cosmic-greeter.enable = true;

  # Enable `zwlr_data_control_manager_v1` protocol in cosmic-comp in order to
  # use the clipboard manager.
  environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;

  # Don't use flatpaks, which will pull in `cosmic-store`.
  services.flatpak.enable = false;

  # Don't include these packages either.
  environment.cosmic.excludePackages = with pkgs; [
    cosmic-edit
    cosmic-player
  ];

  # Install any additional fonts.
  fonts.packages = with pkgs; [
    iosevka-comfy.comfy-motion-fixed
  ];
}