Files
lavitz/modules/home/cosmic.nix
2026-02-10 17:52:16 -07:00

102 lines
2.6 KiB
Nix

{ config, lib, cosmicLib, ... }:
{
wayland.desktopManager.cosmic = {
enable = true;
# --- Appearance / Theme ---
appearance = {
theme = {
mode = "dark";
dark = {
# Pink accent color
accent = cosmicLib.cosmic.mkRON "optional" {
red = 0.91;
green = 0.29;
blue = 0.60;
};
};
};
toolkit = {
apply_theme_global = true;
show_maximize = true;
show_minimize = true;
icon_theme = "Cosmic";
interface_density = cosmicLib.cosmic.mkRON "enum" "Standard";
};
};
# --- Wallpaper ---
wallpapers = [
{
output = "all";
source = cosmicLib.cosmic.mkRON "enum" {
value = [ "${config.home.homeDirectory}/Assets/wallpapers/sound.png" ];
variant = "Path";
};
scaling_mode = cosmicLib.cosmic.mkRON "enum" "Zoom";
filter_method = cosmicLib.cosmic.mkRON "enum" "Lanczos";
filter_by_theme = false;
sampling_method = cosmicLib.cosmic.mkRON "enum" "Alphanumeric";
rotation_frequency = 0;
}
];
# --- Compositor ---
compositor = {
autotile = false;
active_hint = true;
# Flat mouse acceleration (no accel)
input_default = {
acceleration = cosmicLib.cosmic.mkRON "optional" {
profile = cosmicLib.cosmic.mkRON "optional" (cosmicLib.cosmic.mkRON "enum" "Flat");
speed = 0.0;
};
};
};
# --- Keyboard Shortcuts ---
shortcuts = [
{
# Super+B -> Open browser
action = cosmicLib.cosmic.mkRON "enum" {
variant = "Spawn";
value = [ "librewolf" ];
};
key = "Super+b";
description = cosmicLib.cosmic.mkRON "optional" "Open Browser";
}
{
# Super+E -> Open file manager
action = cosmicLib.cosmic.mkRON "enum" {
variant = "Spawn";
value = [ "cosmic-files" ];
};
key = "Super+e";
description = cosmicLib.cosmic.mkRON "optional" "Open File Manager";
}
];
# --- Panel: show weekday + 24h clock in top panel ---
applets.time.settings = {
show_weekday = true;
show_date_in_top_panel = true;
military_time = false;
};
};
# --- COSMIC Files ---
programs.cosmic-files = {
enable = true;
settings = {
app_theme = cosmicLib.cosmic.mkRON "enum" "System";
tab = {
folders_first = true;
show_hidden = false;
view = cosmicLib.cosmic.mkRON "enum" "List";
};
};
};
}