add stylix targets module

This commit is contained in:
lucy 2026-10-19 14:46:47 +02:00
commit d42dda5511
2 changed files with 11 additions and 6 deletions

View file

@ -0,0 +1,6 @@
{ inputs, ... }: {
flake.nixosModules.stylixTargets = {
imports = [ inputs.stylix.nixosModules.stylix ];
stylix.targets = { };
};
}

View file

@ -1,13 +1,12 @@
{ inputs, ... }: {
flake.nixosModules.myStylix = {
imports = [ inputs.stylix.nixosModules.stylix ];
flake.nixosModules.myStylix = { pkgs, ... }: {
imports = [
inputs.stylix.nixosModules.stylix
stylixTargets
];
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
image = pkgs.fetchurl {
url = "https://getwallpapers.com/wallpaper/full/1/4/3/523784.jpg";
hash = "sha256-S/6kgloXiIYI0NblT6YVXfqELApbdHGsuYe6S4JoQwQ=";
};
};
};
}