Serenity/home/desktop/noctalia.nix
2025-12-29 22:09:57 +10:00

93 lines
2.3 KiB
Nix

{ pkgs, inputs, primaryUser, ... }: {
home-manager.users.${primaryUser} = {
# import the home manager module
imports = [ inputs.noctalia.homeModules.default ];
# configure options
programs.noctalia-shell = {
enable = true;
settings = {
# configure noctalia here
general = {
avatarImage = "/home/${primaryUser}/avatar.jpg";
radiusRatio = 0.2;
showSessionButtonOnLockScreen = false;
showHibernateOnLockScreen = true;
};
location = {
monthBeforeDay = true;
name = "Brisbane, Australia";
};
colorSchemes = {
predefinedScheme = "Monochrome";
};
wallpaper = {
directory = "/home/${primaryUser}/Pictures/Wallpapers";
hideWallpaperFilenames = true;
};
appLauncher = {
terminalCommand = "kitty -e";
showCategories = false;
};
bar = {
density = "comfortable";
position = "top";
showCapsule = false;
monitors = [ "DP-4" ];
floating = true;
marginVertical = 0.25;
marginHorizontal = 0.5;
widgets = {
left = [
{
icon = "rocket";
id = "CustomButton";
leftClickExec = "noctalia-shell ipc call launcher toggle";
}
];
center = [{
hideUnoccupied = false;
id = "Workspace";
labelMode = "none";
}];
right = [
{ id = "Tray"; }
{ id = "WiFi"; }
{ id = "Bluetooth"; }
{
alwaysShowPercentage = false;
id = "Battery";
warningThreshold = 30;
}
{
formatHorizontal = "HH:mm";
formatVertical = "HH mm";
id = "Clock";
useMonospacedFont = true;
usePrimaryColor = true;
}
{
id = "ControlCenter";
useDistroLogo = true;
}
];
};
};
#ControlCenter = { };
};
# this may also be a string or a path to a JSON file,
# but in this case must include *all* settings.
};
};
}