aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-07 22:08:48 -0500
committertdback <tyler@tdback.net>2025-01-07 22:08:48 -0500
commite54fa1d0e91abc1c8cac223c79bddc34729c2e3e (patch)
treeafc04f5da4dfc51ba01488d835938f5be261f351 /modules
parent6de68f7a08aa364d7a69a82d02d8508c5a03a197 (diff)
feat: try out cosmic on the desktop
Diffstat (limited to 'modules')
-rw-r--r--modules/profiles/cosmic/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/profiles/cosmic/default.nix b/modules/profiles/cosmic/default.nix
new file mode 100644
index 0000000..0e35d7c
--- /dev/null
+++ b/modules/profiles/cosmic/default.nix
@@ -0,0 +1,42 @@
+{ inputs, pkgs, ... }:
+{
+ imports = [
+ inputs.nixos-cosmic.nixosModules.default
+ ];
+
+ # Set up 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="
+ ];
+ };
+
+ # Use nvidia's experimental framebuffer device to remove a "phantom display"
+ # detected by `cosmic-randr list`.
+ boot.kernelParams = [ "nvidia_drm.fbdev=1" ];
+
+ # Enable `zwlr_data_control_manager_v1` protocol in cosmic-comp to fix the
+ # clipboard manager not working properly.
+ environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
+
+ # Enable COSMIC!
+ services.desktopManager.cosmic.enable = true;
+ services.displayManager.cosmic-greeter.enable = true;
+
+ # 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
+ ];
+}