Browse Source

fixed flake.nix

master
revol-xut 11 months ago
parent
commit
ae435f6fab
Signed by: revol-xut GPG Key ID: 4F56FF7759627D07
2 changed files with 48 additions and 4 deletions
  1. +44
    -0
      flake.lock
  2. +4
    -4
      flake.nix

+ 44
- 0
flake.lock View File

@ -0,0 +1,44 @@
{
"nodes": {
"background": {
"flake": false,
"locked": {
"lastModified": 1645387777,
"narHash": "sha256-6RQQda740xYrFR+E7jHmzCXTVGfr3pXjdG/5A0/4pZc=",
"ref": "master",
"rev": "e14182050f3c5350a13275639b341458a7ec7134",
"revCount": 5,
"type": "git",
"url": "https://gitea.tassilo-tanneberger.de/revol-xut/public-assets.git"
},
"original": {
"type": "git",
"url": "https://gitea.tassilo-tanneberger.de/revol-xut/public-assets.git"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1645334861,
"narHash": "sha256-We9ECiMglthzbZ5S6Myqqf+RHzBFZPoM2qL5/jDkUjs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d5f237872975e6fb6f76eef1368b5634ffcd266f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"background": "background",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

+ 4
- 4
flake.nix View File

@ -2,7 +2,7 @@
description = "My custom Suckless DWM config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
background.url = "https://gitea.tassilo-tanneberger.de/revol-xut/public-assets/raw/branch/master/wallpaper_neon_1.png"
background.url = "git+https://gitea.tassilo-tanneberger.de/revol-xut/public-assets.git";
background.flake = false;
};
outputs = { self, nixpkgs, background }:
@ -18,9 +18,9 @@
buildInputs = oldAttrs.buildInputs ++ [ xorg.libxcb ];
src = ./.;
postPatch = ''
substituteInPlace dwm.c --replace "~/.config/.bg.jpg" "${background}"
substituteInPlace dwm.c --replace "~/.config/.bg.jpg" "${background}/wallpaper_neon_1.png"
'';
})
}
});
};
};
}

Loading…
Cancel
Save