This repository has no description
1.3 kB
35 lines
1{ self, inputs, ... }:
2{
3 perSystem =
4 { pkgs, ... }:
5 let
6 noctalia = inputs.wrappers.lib.wrapModule {
7 imports = [ self.wrapperModules.noctalia-shell ];
8 inherit pkgs;
9
10 # Declarative settings merged into ~/.config/noctalia/settings.json
11 # on every start. Anything not listed here remains user-mutable.
12 settings = {
13 hooks = {
14 enabled = true;
15 # Mirror noctalia's dark mode toggle to the system theme.
16 darkModeChange = ''if [ "$1" = "true" ]; then switch-theme dark; else switch-theme light; fi'';
17 };
18 # The live desktop wallpaper is rendered by mpvpaper on the
19 # background layer (see 2configs/desktops/sway/wallpaper.nix), so
20 # noctalia's own wallpaper is turned off to let it show through.
21 wallpaper.enabled = false;
22 };
23
24 settingsPatches = [
25 # Show workspace names (not indices) in the bar, and don't
26 # truncate them. The widget caps to 2 chars on vertical bars
27 # regardless; this only affects horizontal bars.
28 ''.bar.widgets.center |= map(if .id == "Workspace" then .labelMode = "name" | .characterCount = 20 else . end)''
29 ];
30 };
31 in
32 {
33 packages.noctalia-shell = noctalia.wrapper;
34 };
35}