[ubunut] Get rid of hardcoded paths.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# niri + Noctalia config. The binaries come from apt.
|
# niri + Noctalia config. The binaries come from apt.
|
||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
# Fail `homesw` on a bad config. The nix packages only validate, so they
|
# Fail `homesw` on a bad config. The nix packages only validate, so they
|
||||||
# should match the apt versions.
|
# should match the apt versions.
|
||||||
@@ -12,7 +12,11 @@ in {
|
|||||||
(src: "${pkgs.niri}/bin/niri validate -c ${src}");
|
(src: "${pkgs.niri}/bin/niri validate -c ${src}");
|
||||||
|
|
||||||
# noctalia only warns on unknown keys.
|
# 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: ''
|
(src: ''
|
||||||
log=$(${pkgs.noctalia}/bin/noctalia config validate ${src} 2>&1) || { echo "$log"; exit 1; }
|
log=$(${pkgs.noctalia}/bin/noctalia config validate ${src} 2>&1) || { echo "$log"; exit 1; }
|
||||||
echo "$log"
|
echo "$log"
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
# Settings UI changes go to ~/.local/state/noctalia/settings.toml and win over
|
# Settings UI changes go to ~/.local/state/noctalia/settings.toml and win over
|
||||||
# this file. `noctalia config export` prints the merged result.
|
# this file. `noctalia config export` prints the merged result.
|
||||||
# https://docs.noctalia.dev/noctalia/configuration/
|
# https://docs.noctalia.dev/noctalia/configuration/
|
||||||
|
# The wallpaper paths are filled in by default.nix.
|
||||||
|
|
||||||
[wallpaper]
|
[wallpaper]
|
||||||
directory = "/home/jmug/Pictures/Wallpapers"
|
directory = "@wallpapers@"
|
||||||
|
|
||||||
[wallpaper.default]
|
[wallpaper.default]
|
||||||
path = "/home/jmug/Pictures/Wallpapers/Macintosh-1.png"
|
path = "@wallpapers@/Macintosh-1.png"
|
||||||
|
|
||||||
# "faithful" stays closest to the wallpaper's own colors.
|
# "faithful" stays closest to the wallpaper's own colors.
|
||||||
[theme]
|
[theme]
|
||||||
|
|||||||
Reference in New Issue
Block a user