[ubunut] Get rid of hardcoded paths.

This commit is contained in:
jmug
2026-11-19 17:36:50 -08:00
parent c2160cb3c7
commit a23fd391b8
2 changed files with 9 additions and 4 deletions
+6 -2
View File
@@ -1,5 +1,5 @@
# niri + Noctalia config. The binaries come from apt.
{ pkgs, ... }:
{ config, pkgs, ... }:
let
# Fail `homesw` on a bad config. The nix packages only validate, so they
# should match the apt versions.
@@ -12,7 +12,11 @@ in {
(src: "${pkgs.niri}/bin/niri validate -c ${src}");
# noctalia only warns on unknown keys.
xdg.configFile."noctalia/config.toml".source = checked "noctalia-config.toml" ./noctalia.toml
xdg.configFile."noctalia/config.toml".source = checked "noctalia-config.toml"
(pkgs.replaceVars ./noctalia.toml {
# Linked by ../wallpapers.nix.
wallpapers = "${config.home.homeDirectory}/Pictures/Wallpapers";
})
(src: ''
log=$(${pkgs.noctalia}/bin/noctalia config validate ${src} 2>&1) || { echo "$log"; exit 1; }
echo "$log"
+3 -2
View File
@@ -2,12 +2,13 @@
# Settings UI changes go to ~/.local/state/noctalia/settings.toml and win over
# this file. `noctalia config export` prints the merged result.
# https://docs.noctalia.dev/noctalia/configuration/
# The wallpaper paths are filled in by default.nix.
[wallpaper]
directory = "/home/jmug/Pictures/Wallpapers"
directory = "@wallpapers@"
[wallpaper.default]
path = "/home/jmug/Pictures/Wallpapers/Macintosh-1.png"
path = "@wallpapers@/Macintosh-1.png"
# "faithful" stays closest to the wallpaper's own colors.
[theme]