add wallpaper that gets recolored v2 and actually works now
This commit is contained in:
parent
09426f911b
commit
81e47e6467
2 changed files with 19 additions and 15 deletions
|
|
@ -2,7 +2,6 @@
|
|||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -27,18 +26,13 @@ let
|
|||
map (n: "${dir}/${n}/${platform}.nix") (
|
||||
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
||||
);
|
||||
wallpaper = ./wallpaper.png;
|
||||
baseNames = map (c: "base0${c}") (lib.stringToCharacters "0123456789ABCDEF");
|
||||
palette = lib.concatMapStringsSep " " (n: config.lib.stylix.colors.withHashtag.${n}) baseNames;
|
||||
palette = "gruvbox-dark-hard";
|
||||
stylixPalette = lib.strings.concatStrings [
|
||||
"${pkgs.base16-schemes}/share/themes/"
|
||||
"${palette}"
|
||||
".yaml"
|
||||
];
|
||||
|
||||
recolored =
|
||||
pkgs.runCommand "wallpaper-stylix.png"
|
||||
{
|
||||
nativeBuildInputs = [ pkgs.lutgen ];
|
||||
}
|
||||
''
|
||||
lutgen apply ${wallpaper} -o ~/.walls/stylix-bars.png -p ${palette}
|
||||
'';
|
||||
in
|
||||
{
|
||||
disabledModules = disable "nixos";
|
||||
|
|
@ -62,9 +56,9 @@ in
|
|||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = false;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyodark.yaml";
|
||||
base16Scheme = stylixPalette;
|
||||
polarity = "dark";
|
||||
image = recolored;
|
||||
image = ./wallpaper.png;
|
||||
targets = {
|
||||
console.enable = true;
|
||||
gtk.enable = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue