Compare commits

...
Sign in to create a new pull request.

1 commit
main ... cosmic

Author SHA1 Message Date
2a38c58903 cosmic: add cosmic config 2026-04-16 23:03:04 -03:00
6 changed files with 76 additions and 0 deletions

View file

@ -106,6 +106,7 @@
{
login-manager.greetd.enable = desktop == "sway";
my.gnome.enable = desktop == "gnome";
my.cosmic.enable = desktop == "cosmic";
my.kde.enable = desktop == "kde";
}

View file

@ -31,6 +31,7 @@
./sops.nix
./greetd.nix
./gnome.nix
./cosmic.nix
./kde.nix
./home-manager.nix
../settings

30
system/cosmic.nix Normal file
View file

@ -0,0 +1,30 @@
{
config,
lib,
...
}:
{
options.my.cosmic.enable = lib.mkEnableOption { };
config = lib.mkIf config.my.cosmic.enable {
# See https://wiki.nixos.org/wiki/COSMIC
services.displayManager.cosmic-greeter.enable = true;
services.desktopManager.cosmic.enable = true;
# Same as GNOME: avoids conflict with graphics manager autologin
# (e.g.: https://github.com/NixOS/nixpkgs/issues/103746)
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
services.displayManager.autoLogin = {
enable = true;
user = config.my.username;
};
programs.dconf.enable = true;
programs.kdeconnect.enable = true;
hardware.opentabletdriver.enable = lib.mkForce false;
};
}

42
user/cosmic.nix Normal file
View file

@ -0,0 +1,42 @@
{
pkgs,
lib,
config,
...
}:
lib.mkIf (config.my.desktop == "cosmic") {
home.pointerCursor = {
name = "Adwaita";
size = 24;
package = pkgs.adwaita-icon-theme;
gtk.enable = true;
};
home.packages = with pkgs; [
adw-gtk3
newsflash
foliate
amberol
pitivi
keepassxc
menulibre
libsForQt5.qt5ct
libsForQt5.qtstyleplugin-kvantum
qt6Packages.qt6ct
qt6Packages.qtstyleplugin-kvantum
];
services.gpg-agent.pinentry.package = lib.mkForce pkgs.pinentry-gnome3;
xdg.defaultApplications = {
enable = lib.mkForce false;
};
# Wiki COSMIC: Firefox ignores DE theme because of libadwaita
programs.firefox.profiles.dev-edition-default.settings = {
"widget.gtk.libadwaita-colors.enabled" = false;
};
}

View file

@ -6,6 +6,7 @@
media-packages.enable = lib.mkEnableOption { };
containers.enable = lib.mkEnableOption { };
gnome.enable = lib.mkEnableOption { };
cosmic.enable = lib.mkEnableOption { };
kde.enable = lib.mkEnableOption { };
};
}

View file

@ -16,6 +16,7 @@
./vscode
./fish
./firefox.nix
./cosmic.nix
./alacritty.nix
./git.nix
./ssh.nix