add wallpaper that gets recolored

This commit is contained in:
lucy 2026-08-05 16:19:53 +02:00
commit 09426f911b
4 changed files with 90 additions and 57 deletions

118
flake.lock generated
View file

@ -86,11 +86,11 @@
"firefox-gnome-theme": { "firefox-gnome-theme": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1782007937, "lastModified": 1783570805,
"narHash": "sha256-PbnJr+eB+9Czol3ReI83dUgEhcn0sDK6TSy6ODTQm88=", "narHash": "sha256-ptl5aRlCv9/uRSv2u8Hq8UFVFeZ6Q/bT049bpqNgc3w=",
"owner": "rafaelmardojai", "owner": "rafaelmardojai",
"repo": "firefox-gnome-theme", "repo": "firefox-gnome-theme",
"rev": "981bd332015397fb1ca033fa982bd61635160c78", "rev": "5602ed62d638142c1ab31dccd01dfbfb28841225",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -115,20 +115,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_2": {
"locked": {
"lastModified": 1733328505,
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"revCount": 69,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
@ -253,11 +239,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1785168662, "lastModified": 1785531816,
"narHash": "sha256-kGJTc0oEUQuEwV66lSlMxYtOEtpk9N/HS43k+rFAvs8=", "narHash": "sha256-vkMnV0JIyw+g/NmcfoajlGaAO+9a0ezia+FZohQJrik=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "cbb77679b3d992c8b62f884cd3a84af534a28621", "rev": "bf9ce9fec78f95f374e8dd3b503863a3ec128ebe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -312,19 +298,19 @@
}, },
"nixcord": { "nixcord": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"nixpkgs-nixcord": "nixpkgs-nixcord" "nixpkgs-nixcord": "nixpkgs-nixcord",
"treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1785174508, "lastModified": 1785866135,
"narHash": "sha256-lnLPM02rSg8LxRwbNh0vfkB4OsBE5FYnVhy3dz2CPjI=", "narHash": "sha256-ugvn1/SwNQDsYx8XM7FoAsPe9WL/ZMMjWgB/acoeeCs=",
"owner": "FlameFlag", "owner": "FlameFlag",
"repo": "nixcord", "repo": "nixcord",
"rev": "3708bb6f9e6c0e65b10741eab6ac55e701c09625", "rev": "6385c7caabc51e9818e2ad32bc68178b4608ecb1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -335,11 +321,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1785141334, "lastModified": 1785747939,
"narHash": "sha256-kh35kIx7el4Jk8Ki3BH9/Pn1eZYSYLJ6LMALos0zOy0=", "narHash": "sha256-D740uKsMbgsfK2oaDenJLLPIZfq7W0/g4KN/Fls8eKs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "38a4887411571457d700c51c64a6e49ead2ed5ab", "rev": "104240a772428cc2e20d8fd86c9ddbb886bbaff2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -366,11 +352,11 @@
}, },
"nixpkgs-nixcord": { "nixpkgs-nixcord": {
"locked": { "locked": {
"lastModified": 1784432872, "lastModified": 1785386831,
"narHash": "sha256-n3gKTBIV4ZA5VQpUakffBe3KGu4+mhPoA34rrqS0GkA=", "narHash": "sha256-sPS3CaXH8RAT3FZRuy4VcV47iuYIWMMfa0GbyJKC3o4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fd1462031fdee08f65fd0b4c6b64e22239a77870", "rev": "21ea275a7c46aef9d4d6ddc962e6d562e9d94183",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -403,11 +389,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1785001306, "lastModified": 1785763201,
"narHash": "sha256-xWqmquUtqKXLeDZ1oQUO+rV4sjA9TShIJhLL8M5Bozo=", "narHash": "sha256-wA373y/B9orM3HatLu9oS+Ke5lmdZyBl/bdjd2gLMq4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "48409beb41e8e28b64e8160ca82d8a93fb628963", "rev": "c7be49306b23a952c0151cf4bbeacd944ed82f2a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -428,11 +414,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1783439237, "lastModified": 1785549842,
"narHash": "sha256-WUr8JF2v3n4Y30E5dxv4sAgNJXpVDBoCQNoQ/V4+n4o=", "narHash": "sha256-DCwBZmGsySF7oKGTRgEv2HvpxVXkHT+38VhTM76k0B4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "b70bb66c7bcd162642f3a609bc16843c7059f503", "rev": "a9f987b57594e845e3e5cdd423b9a70846d70308",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -505,11 +491,11 @@
"systems": "systems_2" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1785048222, "lastModified": 1785652745,
"narHash": "sha256-LjFVfwxensz76SjnvofF1Jsw+xTLd8Qp31W0J6nh2XI=", "narHash": "sha256-pD0VE/XwjQ3tLyxTzXKdm6JuIEWr/Jaote6xpXGZrXk=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "17e524f330c282d31c32dfe076222d4a12277886", "rev": "802040514e09bb8539237f52f68cf053b987c65e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -538,11 +524,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1784676123, "lastModified": 1785794750,
"narHash": "sha256-ndyanKzw90yX2nUVFmTuYqXidUNymtMfgmIHyNdhht0=", "narHash": "sha256-OqIrGVL7AX462ISyJFAqjbqTc1RZlBkVHCa4dwPEZU4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "stylix", "repo": "stylix",
"rev": "66714e5ce44269ecc58c20d9196da8dbe1b27a31", "rev": "cb5eb3a7343faba61fd694fac8040a326485a339",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -584,15 +570,16 @@
}, },
"systems_3": { "systems_3": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1774449309,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "narHash": "sha256-brhZ8DmuGtzkCYHJg4HEd602amKm89Y9ytsFZ5uWD1w=",
"owner": "nix-systems", "owner": "nix-systems",
"repo": "default", "repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "rev": "c29398b59d2048c4ab79345812849c9bd15e9150",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-systems", "owner": "nix-systems",
"ref": "future-26.11",
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
@ -616,11 +603,11 @@
"tinted-schemes": { "tinted-schemes": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1781968807, "lastModified": 1785153830,
"narHash": "sha256-yYO3Vw2M0y3TAUqt+9+Mj0zwP3XDTF5/PXcPhhFQ1ZM=", "narHash": "sha256-fNdfCTeCXU3tZG3TMincd+u68qBHQgCr2Ljr/M1mWP0=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "schemes", "repo": "schemes",
"rev": "2ccef2f4b22e3cab5a9292811f7133a07eeba4a7", "rev": "9bd28ed313560db3c5b605c63bc4e309e78e3fc8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -632,11 +619,11 @@
"tinted-tmux": { "tinted-tmux": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1782012462, "lastModified": 1785031658,
"narHash": "sha256-2iDiD8DQLwS1lGuD9TS8WlvNyDoTs6krWntJbtB2zGo=", "narHash": "sha256-mZp9O2LjzdMzlqQF3l3fjqsuPBzXy+1qTfBEUGjTlpk=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "tinted-tmux", "repo": "tinted-tmux",
"rev": "8c4e750f738a742bd73377ee41d3dadedebedef4", "rev": "5d2c67f61ea7af36f16865ab6d541cdba41dc257",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -648,11 +635,11 @@
"tinted-zed": { "tinted-zed": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1782009766, "lastModified": 1785030526,
"narHash": "sha256-VUhBjpGvWqHI7rWeyMYb/u87YJSXHKfVV6S+IelWeO8=", "narHash": "sha256-klZf8UviewRkxuu74Bhbq6tqy7oxebQC7UVRWbbtQxU=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "base16-zed", "repo": "base16-zed",
"rev": "5e8350bcd354e3241ab681a265fa6ef060c40be1", "rev": "16f5a8adf4a6b1310d0a61ab172de963e8f76a02",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -660,6 +647,27 @@
"repo": "base16-zed", "repo": "base16-zed",
"type": "github" "type": "github"
} }
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"nixcord",
"nixpkgs"
]
},
"locked": {
"lastModified": 1785360170,
"narHash": "sha256-XE1lKgQ3eIO3E7zWryqcRsax+mYXod/5RHBn4YaR9YE=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "d1187f8bc71fb8aab02395869ec3f5c1920f75c0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -1,4 +1,6 @@
{ {
lib,
pkgs,
inputs, inputs,
... ...
}: }:
@ -20,4 +22,14 @@
home.username = "lucy"; home.username = "lucy";
home.homeDirectory = "/home/lucy"; home.homeDirectory = "/home/lucy";
home.stateVersion = "26.05"; home.stateVersion = "26.05";
home.activation = {
reload-quickshell =
lib.hm.dag.entryAfter
[
"writeBoundary"
]
''
${lib.getExe pkgs.quickshell} ipc call config reload true
'';
};
} }

View file

@ -2,6 +2,7 @@
inputs, inputs,
pkgs, pkgs,
lib, lib,
config,
... ...
}: }:
let let
@ -26,6 +27,18 @@ let
map (n: "${dir}/${n}/${platform}.nix") ( map (n: "${dir}/${n}/${platform}.nix") (
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop 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;
recolored =
pkgs.runCommand "wallpaper-stylix.png"
{
nativeBuildInputs = [ pkgs.lutgen ];
}
''
lutgen apply ${wallpaper} -o ~/.walls/stylix-bars.png -p ${palette}
'';
in in
{ {
disabledModules = disable "nixos"; disabledModules = disable "nixos";
@ -49,9 +62,9 @@ in
stylix = { stylix = {
enable = true; enable = true;
autoEnable = false; autoEnable = false;
base16Scheme = "${pkgs.base16-schemes}/share/themes/black-metal.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyodark.yaml";
polarity = "dark"; polarity = "dark";
image = ./wallpaper.png; image = recolored;
targets = { targets = {
console.enable = true; console.enable = true;
gtk.enable = true; gtk.enable = true;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Before After
Before After