cosmic: add cosmic config

This commit is contained in:
Leonardo Eugênio 2026-04-16 23:03:04 -03:00
parent aa97808cf7
commit 2a38c58903
6 changed files with 76 additions and 0 deletions

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;
};
}