mv stylix to module

This commit is contained in:
smayzy 2025-07-08 18:42:23 +02:00
parent bc5d2cc845
commit f43c77d6f3
4 changed files with 24 additions and 3 deletions

View File

@ -16,6 +16,7 @@
fzf.enable = true;
firefox.enable = true;
zsh.enable = true;
stylix.enable = true;
};
home-manager = {
@ -72,9 +73,6 @@
ntfs3g
];
stylix.enable = true;
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml";
services.flatpak = {
enable = true;
update.onActivation = true;

View File

@ -8,6 +8,7 @@
./games
./browser
./shell
./rice
];
# Timzone and locales (same for all machines so I put it here)

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./stylix.nix
];
}

View File

@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.stylix.enable = mkOption {
type = types.bool;
default = false;
description = "stylix";
};
config = mkIf config.smayzy.stylix.enable {
stylix.enable = true;
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml";
};
}