[ubunut] Get rid of hardcoded paths.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user