forked from javif89/nix
Even my wallpaper is declarative
This commit is contained in:
parent
b1ac37d40e
commit
bb8e08f6c6
BIN
assets/wallpaper.png
Normal file
BIN
assets/wallpaper.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 MiB |
@ -175,7 +175,10 @@
|
||||
|
||||
# Enable home manager
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
assets = assets;
|
||||
};
|
||||
users = {
|
||||
"javi" = {
|
||||
imports = [
|
||||
|
@ -2,28 +2,27 @@
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
assets,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
basePath = "/home/javi/Documents/wallpapers";
|
||||
wallpaper = "Fantasy-Mountain.png";
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.hyprpaper
|
||||
];
|
||||
# Home Manager
|
||||
xdg.configFile."wallpaper.png".source = "${assets}/wallpaper.png";
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ipc = "on";
|
||||
splash = false;
|
||||
preload = [
|
||||
"${basePath}/${wallpaper}"
|
||||
"/home/javi/.config/wallpaper.png"
|
||||
];
|
||||
|
||||
wallpaper = [
|
||||
", ${basePath}/${wallpaper}"
|
||||
", /home/javi/.config/wallpaper.png"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user