In this previous post, I was informed that I need to include nixos-artwork.wallpapers.<name>
(where name specifies a specific wallpaper I want) in my list of packages in /etc/nixos/configuration.nix
to get NixOS artwork official wallpapers in /run/current-system/sw/share/backgrounds/nixos
. I was wondering, however, is there a nice compact way to include all the wallpapers I want in configuration.nix? I currently have this under my environment.systemPackages = with pkgs; [
line in configuration.nix:
nixos-artwork.wallpapers = [
binary-black # this is where I was hoping to specify the wallpapers I want in a list
]
but, unfortunately, rebuilding my system with this in my configuration gives this error:
error:
… while evaluating the attribute 'config'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:1:12284:
… while calling the 'seq' builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:1:12293:
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: syntax error, unexpected '='
at /etc/nixos/configuration.nix:132:34:
131| xclip
132| nixos-artwork.wallpapers = [
| ^
133| binary-black
So I was hoping is there a way to compactly list all the wallpapers I want? Or do I need to add nixos-artwork.wallpapers.<name>
to my system packages array for each wallpaper I want?