nixos-configuration/nix-os/desktopManagers/cosmic.nix

62 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2025-01-03 23:06:44 +01:00
{
inputs,
lib,
pkgs,
self,
...
}:
let
cosmic-configuration = pkgs.substituteAllFiles {
name = "cosmic-configuration";
src = ./cosmic-config;
files = [ "." ]; # All files
postInstall = ''
mkdir -p $share/share/cosmic
cp -rt $share/share/cosmic $out/*
'';
outputs = [ "out" "share" ];
wallpaper = ../../media/wallpaper.png;
corner_radii_theme = "2.0";
corner_radii_panel = "2";
};
in
{
imports = [
"${inputs.cosmic-modules}/nixos/cosmic/module.nix"
2025-01-03 23:06:44 +01:00
"${self}/nix-os/generic/dconf.nix"
];
config = {
services.desktopManager.cosmic.enable = true;
environment.cosmic.excludePackages = with pkgs; [
cosmic-edit
cosmic-term
];
2024-10-02 18:32:05 +02:00
environment.systemPackages = with pkgs; [
(lib.hiPrio cosmic-configuration.share)
2025-01-03 23:06:44 +01:00
google-cursor
2024-10-02 18:32:05 +02:00
];
2024-10-02 23:56:34 +02:00
services.gnome.gnome-keyring.enable = true;
2025-01-03 23:06:44 +01:00
proot.dconf = {
rules."org/gnome/desktop/interface".cursor-theme = "GoogleDot-White";
profiles.user.rulesToApply = [
"org/gnome/desktop/interface"
];
};
environment.sessionVariables = {
XCURSOR_SIZE = "16";
XCURSOR_THEME = "GoogleDot-White";
};
environment.etc."xdg/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-cursor-theme-name=GoogleDot-White
gtk-application-prefer-dark-theme=true
'';
};
}