adyya-flake/stylix.mod.nix
Ittihadyya 95a2cb6ff5
Some checks failed
/ Check formatting (push) Failing after 1m44s
Removed beeref cause it wasn't used - fixed up the fonts.

2024-12-18 11:01:22 +02:00

113 lines
3.5 KiB
Nix

{stylix, ...}: let
wallpapers =
builtins.mapAttrs
(
name: value: {
lib,
pkgs,
...
}: {
stylix.image = pkgs.fetchurl {
url = value.url;
hash = value.hash or lib.fakeHash;
};
}
)
{
sekiro.url = "https://w.wallhaven.cc/full/vg/wallhaven-vgor6p.jpg";
sekiro.hash = "sha256-pcNIr1yON9SsOhUAr//GGbijZayksBTYBu7l+/1+He8=";
ac-frozen.url = "https://w.wallhaven.cc/full/7p/wallhaven-7p22j9.png";
ac-frozen.hash = "sha256-qBJL8ddJhUWuUeaqPssMDUSfuNa9elfb7XMMeOAlwpE=";
ac-impact.url = "https://w.wallhaven.cc/full/jx/wallhaven-jx3xmp.png";
ac-impact.hash = "sha256-oAm8IVMlZpEuLp1baoFqzFk5VWzELOiOv+CaRIAE2Dc=";
ac-grid.url = "https://w.wallhaven.cc/full/kx/wallhaven-kxg7d1.png"; # the contrast on the color scheme generated by stylix bc of this is really really bad so don't use this one please & ty
ac-grid.hash = "sha256-7zO4rHrVsFMsnH+X7GJKr6qcGB3Z/k525UIv19lnSls=";
ludwig.url = "https://w.wallhaven.cc/full/6d/wallhaven-6d8p9w.png";
ludwig.hash = "sha256-DmV8sF6zN6/A+wQNCaxyQ32aZb4MPsdoKiNDwvnT6qU=";
wukong.url = "https://w.wallhaven.cc/full/l8/wallhaven-l81moy.jpg";
wukong.hash = "sha256-EE/VhlbA/hnvjTSvqYLIWay+llNUyZ0iC2OCRphcKkQ=";
twirly-bh.url = "https://w.wallhaven.cc/full/l8/wallhaven-l8v7kq.jpg";
twirly-bh.hash = "sha256-on/wIsdUgKSgl9o/jwKu/Rk2ehK9JgDBoGji+QH5b5s=";
game-of-destiny.url = "https://static.wikia.nocookie.net/lord-of-the-mystery/images/2/23/The_Game_of_Destiny_-_Amon.jpg/revision/latest?cb=20230106124746";
game-of-destiny.hash = "";
dynasty.url = "https://w.wallhaven.cc/full/m9/wallhaven-m9mevm.jpg";
dynasty.hash = "";
blue-eyes.url = "https://w.wallhaven.cc/full/5g/wallhaven-5g5613.jpg";
blue-eyes.hash = "";
long.url = "https://w.wallhaven.cc/full/o3/wallhaven-o3gox7.jpg";
long.hash = "";
};
in {
personal.modules = [
stylix.nixosModules.stylix
(
{
pkgs,
config,
...
}: {
stylix.enable = true;
stylix.polarity = "dark";
stylix.fonts.monospace.package = pkgs.nerd-fonts.fira-code;
stylix.fonts.monospace.name = "FiraCode Nerd Font";
stylix.fonts.sansSerif.package = pkgs.nerd-fonts.ubuntu-sans;
stylix.fonts.sansSerif.name = "Ubuntu Nerd Font";
stylix.fonts.serif = config.stylix.fonts.sansSerif;
stylix.fonts.sizes.applications = 10;
stylix.fonts.sizes.desktop = 12;
stylix.cursor.package = pkgs.afterglow-cursors-recolored;
stylix.cursor.name = "Afterglow-Recolored-Dracula-Green";
stylix.cursor.size = 24;
stylix.opacity.terminal = 0.9;
}
)
];
capsaicin.modules = [
wallpapers.ac-frozen
];
menthol.modules = [
wallpapers.ludwig
];
personal.home_modules = [
{
stylix.targets.vscode.enable = false; # it kinda overrides everything with this. which is uncool
}
(
{
lib,
pkgs,
config,
...
}: {
systemd-fuckery.auto-restart = ["swaybg"];
systemd.user.services."swaybg" = {
Unit = {
Description = "wallpapers! brought to you by stylix! :3";
PartOf = ["graphical-session.target"];
};
Install.WantedBy = ["graphical-session.target"];
Service = {
ExecStart = "${lib.getExe pkgs.swaybg} -i ${config.stylix.image}";
Restart = "on-failure";
};
};
}
)
];
}