change structure to make it more readable
This commit is contained in:
parent
dfa5f7c65c
commit
ad86712653
31 changed files with 259 additions and 234 deletions
48
home-manager/stylix.nix
Normal file
48
home-manager/stylix.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
keep = [
|
||||
"spicetify"
|
||||
"neovim"
|
||||
"qt"
|
||||
"gtk"
|
||||
"hyprland"
|
||||
"hyprpaper"
|
||||
"foot"
|
||||
"fuzzel"
|
||||
"discord"
|
||||
"console"
|
||||
];
|
||||
dir = "${inputs.stylix}/modules";
|
||||
|
||||
drop = builtins.filter (n: !(builtins.elem n keep)) (
|
||||
builtins.attrNames (lib.filterAttrs (_: t: t == "directory") (builtins.readDir dir))
|
||||
);
|
||||
|
||||
disable =
|
||||
platform:
|
||||
map (n: "${dir}/${n}/${platform}.nix") (
|
||||
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
||||
);
|
||||
in
|
||||
|
||||
{
|
||||
disabledModules = disable "hm";
|
||||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = false;
|
||||
targets = {
|
||||
gtk.enable = true;
|
||||
nixcord.enable = true;
|
||||
qt.enable = true;
|
||||
hyprland.enable = true;
|
||||
hyprland.hyprpaper.enable = false;
|
||||
fuzzel.enable = true;
|
||||
foot.enable = true;
|
||||
spicetify.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue