178 lines
3.7 KiB
Nix
178 lines
3.7 KiB
Nix
#
|
|
# Bar
|
|
#
|
|
|
|
{ config, pkgs, inputs, user, ...}:
|
|
|
|
{
|
|
|
|
# install package
|
|
environment.systemPackages = with pkgs; [
|
|
# ... maybe other stuff
|
|
];
|
|
|
|
services.tuned.enable = true;
|
|
services.upower.enable = true;
|
|
|
|
home-manager.users.${user} = { # Home-manager waybar config
|
|
# import the home manager module
|
|
imports = [
|
|
inputs.noctalia.homeModules.default
|
|
];
|
|
|
|
programs.fuzzel = {
|
|
enable = true; # Super+D in the default setting (app launcher)
|
|
};
|
|
services.mako.enable = true; # notification daemon
|
|
services.polkit-gnome.enable = true; # polkit
|
|
|
|
# configure options
|
|
programs.noctalia-shell = {
|
|
enable = true;
|
|
|
|
# enable the systemd service
|
|
systemd.enable = true;
|
|
settings = {
|
|
# configure noctalia here
|
|
appLauncher = {
|
|
terminalCommand = "{pkgs.alacritty}/bin/alacritty -e";
|
|
};
|
|
|
|
bar = {
|
|
density = "compact";
|
|
position = "top";
|
|
showCapsule = false;
|
|
widgets = {
|
|
left = [
|
|
{
|
|
id = "ControlCenter";
|
|
useDistroLogo = true;
|
|
}
|
|
{
|
|
hideUnoccupied = false;
|
|
id = "Workspace";
|
|
labelMode = "none";
|
|
}
|
|
{
|
|
id = "ActiveWindow";
|
|
}
|
|
];
|
|
center = [
|
|
{
|
|
formatHorizontal = "HH:mm";
|
|
formatVertical = "HH mm";
|
|
id = "Clock";
|
|
useMonospacedFont = true;
|
|
usePrimaryColor = true;
|
|
}
|
|
];
|
|
right = [
|
|
{
|
|
id = "MediaMini";
|
|
}
|
|
{
|
|
id = "SystemMonitor";
|
|
showNetworkStats = true;
|
|
}
|
|
{
|
|
id = "WiFi";
|
|
}
|
|
{
|
|
id = "Bluetooth";
|
|
}
|
|
{
|
|
id = "Battery";
|
|
warningThreshold = 20;
|
|
displayMode = "alwaysShow";
|
|
}
|
|
{
|
|
id = "Volume";
|
|
displayMode = "alwaysShow";
|
|
}
|
|
{
|
|
id = "NotificationHistory";
|
|
hideWhenZero = true;
|
|
}
|
|
{
|
|
id = "Tray";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
colorSchemes.predefinedScheme = "Catppuccin";
|
|
|
|
general = {
|
|
avatarImage = "/home/kabbone/.face";
|
|
radiusRatio = 0.2;
|
|
lockOnSusepnd = true;
|
|
};
|
|
|
|
location = {
|
|
monthBeforeDay = true;
|
|
name = "Munich, Germany";
|
|
showWeekNumberInCalendar = true;
|
|
firstDayOfWeek = 0;
|
|
};
|
|
|
|
wallpaper = {
|
|
enabled = true;
|
|
overviewEnabled = false;
|
|
directory = "/home/${user}/.setup/modules/themes/";
|
|
};
|
|
|
|
brightness = {
|
|
enforceMinimum = true;
|
|
brightnessStep = 5;
|
|
};
|
|
|
|
controlCenter = {
|
|
shortcuts = {
|
|
left = [
|
|
{
|
|
id = "WiFi";
|
|
}
|
|
{
|
|
id = "Bluetooth";
|
|
}
|
|
{
|
|
id = "ScreenRecorder";
|
|
}
|
|
{
|
|
id = "PowerProfile";
|
|
}
|
|
{
|
|
id = "KeepAwake";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
dock = {
|
|
enabled = false;
|
|
};
|
|
|
|
templates = {
|
|
fuzzel = true;
|
|
alacritty = true;
|
|
qt = true;
|
|
gtk = true;
|
|
discord = true;
|
|
code = true;
|
|
telegram = true;
|
|
niri = true;
|
|
firefox = true;
|
|
};
|
|
};
|
|
# this may also be a string or a path to a JSON file,
|
|
# but in this case must include *all* settings.
|
|
};
|
|
|
|
home.file.".cache/noctalia/wallpapers.json" = {
|
|
text = builtins.toJSON {
|
|
defaultWallpaper = "/home/${user}/.setup/modules/themes/wall.jpg";
|
|
};
|
|
};
|
|
};
|
|
}
|