|
{
|
|
description = "My custom Suckless DWM config";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
background.url = "git+https://gitea.tassilo-tanneberger.de/revol-xut/public-assets.git";
|
|
background.flake = false;
|
|
};
|
|
outputs = { self, nixpkgs, background }:
|
|
let
|
|
#background = pkgs.fetchurl {
|
|
#url = "https://gitea.tassilo-tanneberger.de/revol-xut/public-assets/raw/branch/master/wallpaper_neon_1.png";
|
|
#sha256 = "sha256-Uupz4VwmpURnL/xfE0WYD8OLBDk5Do2eJ/shiCnapDo=";
|
|
#};
|
|
in {
|
|
# self: super: must be named final: prev: for `nix flake check` to be happy
|
|
overlay = (final: prev: {
|
|
dwm = prev.dwm.overrideAttrs (oldAttrs: with final; {
|
|
buildInputs = oldAttrs.buildInputs ++ [ xorg.libxcb zsh ];
|
|
src = ./.;
|
|
postPatch = ''
|
|
substituteInPlace dwm.c --replace "~/.config/.bg.jpg" "${background}/wallpaper_neon_1.png"
|
|
substituteInPlace config.def.h --replace "st-shell" "${st}/bin/st"
|
|
'';
|
|
});
|
|
});
|
|
};
|
|
}
|