Files
lux/modules/capabilities/noctalia.nix
T

133 lines
3.3 KiB
Nix

{
flake.modules.homeManager.noctalia =
{
config,
inputs,
lib,
pkgs,
...
}:
let
homeDir = config.home.homeDirectory;
in
{
desktop.autostart = [ [ (lib.getExe config.programs.noctalia.package) ] ];
programs.noctalia = {
enable = true;
package = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default;
settings = {
audio = {
enable_sounds = true;
sound_volume = 1.0;
};
bar.default = {
center = [
"clock"
"text_separator"
"date"
];
end = [
"tray"
"bluetooth"
"volume"
]
++ lib.optionals (config.facts.machine.name == "zenith") [
"network"
"battery"
]
++ [
"clipboard"
"session"
];
start = [
"control-center"
"workspaces"
];
font_weight = 400;
thickness = 30;
};
calendar = {
enabled = true;
account.radicale = {
name = "Personal";
provider = "custom";
server_url = "${config.facts.services.radicale.origin}/";
type = "caldav";
username = config.facts.account.name;
};
};
desktop_widgets.enabled = false;
location.address = "Meterik, The Netherlands";
lockscreen = {
blur_intensity = 0.8;
blurred_desktop = true;
fingerprint = false;
tint_intensity = 0.5;
};
lockscreen_widgets.enabled = true;
nightlight = {
enabled = true;
temperature_night = 3000;
};
notification = {
layer = "overlay";
position = "bottom_right";
};
shell = {
polkit_agent = true;
# Handy provides recording feedback; omit microphone activity popups/indicators.
privacy.mic_filter_regex = ".*";
screen_time_enabled = true;
animation.speed = 1.5;
screen_corners = {
enabled = true;
size = 50;
};
screenshot.directory = "${homeDir}/media/images/screenshots";
};
theme = {
templates = {
enable_builtin_templates = false;
enable_community_templates = false;
};
};
wallpaper = {
directory = "${homeDir}/media/images/wallpapers";
};
weather.refresh_minutes = 15;
widget = {
bluetooth.hide_when_no_connected_device = true;
media = {
art_size = 90.0;
max_length = 800;
};
text_separator = {
anchor = true;
format = "•";
type = "clock";
};
tray.drawer = true;
volume.show_label = false;
network.show_label = false;
battery.show_label = false;
workspaces.show_labels = false;
};
};
};
};
}