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
|
# Enable home manager
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
assets = assets;
|
||||||
|
};
|
||||||
users = {
|
users = {
|
||||||
"javi" = {
|
"javi" = {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -2,28 +2,27 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
assets,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
basePath = "/home/javi/Documents/wallpapers";
|
|
||||||
wallpaper = "Fantasy-Mountain.png";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.hyprpaper
|
pkgs.hyprpaper
|
||||||
];
|
];
|
||||||
|
# Home Manager
|
||||||
|
xdg.configFile."wallpaper.png".source = "${assets}/wallpaper.png";
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
splash = false;
|
splash = false;
|
||||||
preload = [
|
preload = [
|
||||||
"${basePath}/${wallpaper}"
|
"/home/javi/.config/wallpaper.png"
|
||||||
];
|
];
|
||||||
|
|
||||||
wallpaper = [
|
wallpaper = [
|
||||||
", ${basePath}/${wallpaper}"
|
", /home/javi/.config/wallpaper.png"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user