From 098b92ae45d3ea71966957f2ca03cd4698e6a2fe Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 15 Jun 2026 10:45:34 +0200 Subject: [PATCH] feature(noctalia): use the noctialia flake to manage my noctalia config for version 5 --- modules/home-manager/noctalia.nix | 79 +++++++++++++++++++++++++++++++ users/aaron/home.nix | 1 + 2 files changed, 80 insertions(+) create mode 100644 modules/home-manager/noctalia.nix diff --git a/modules/home-manager/noctalia.nix b/modules/home-manager/noctalia.nix new file mode 100644 index 0000000..3b3649f --- /dev/null +++ b/modules/home-manager/noctalia.nix @@ -0,0 +1,79 @@ +{ config, pkgs, inputs, ... }: + +{ + # Noctalia v5 shell, managed via its upstream home-manager module. + # See https://docs.noctalia.dev/v5/getting-started/nixos/ + imports = [ inputs.noctalia.homeModules.default ]; + + programs.noctalia = { + enable = true; + + # The module's `package` option has no default, so it must be set explicitly. + package = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default; + + # settings is rendered to ~/.config/noctalia/config.toml + settings = { + # theme / colors + theme = { + source = "builtin"; + builtin = "Nord"; + mode = "dark"; + }; + + # general + shell = { + font_family = "0xProto Nerd Font"; + ui_scale = 1.2; + avatar_path = "/home/aaron/syncthing/pictures/Logo-Aaron-Totenkopf-rund-schwarz.png"; + telemetry_enabled = false; + clipboard_enabled = true; + }; + + # location / weather + location.address = "Bern"; + + weather = { + enabled = true; + unit = "metric"; + }; + + # wallpaper + wallpaper = { + enabled = true; + directory = "/home/aaron/Pictures/Wallpapers"; + fill_mode = "crop"; + }; + + # bar layout + bar = { + order = [ "default" ]; + default = { + position = "top"; + background_opacity = 0.93; + start = [ "control-center" "cpu" "ram" "temp" "media" "active_window" ]; + center = [ "workspaces" ]; + end = [ "tray" "notifications" "volume" "input_volume" "network" "bluetooth" "clock" ]; + }; + }; + + # idle behavior + idle = { + behavior_order = [ "screen-off" "lock" "lock-and-suspend" ]; + behavior = { + "screen-off" = { + enabled = true; + timeout = 600; + }; + "lock" = { + enabled = true; + timeout = 660; + }; + "lock-and-suspend" = { + enabled = true; + timeout = 1800; + }; + }; + }; + }; + }; +} diff --git a/users/aaron/home.nix b/users/aaron/home.nix index 791a600..96309f9 100644 --- a/users/aaron/home.nix +++ b/users/aaron/home.nix @@ -6,6 +6,7 @@ ../../modules/home-manager/git.nix ../../modules/home-manager/ghostty.nix ../../modules/home-manager/nixvim.nix + ../../modules/home-manager/noctalia.nix ../../modules/home-manager/programs.nix ../../modules/home-manager/shell.nix ../../modules/home-manager/styling.nix