mv stylix to module
This commit is contained in:
parent
bc5d2cc845
commit
f43c77d6f3
@ -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;
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
./games
|
||||
./browser
|
||||
./shell
|
||||
./rice
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
6
modules/nix/rice/default.nix
Normal file
6
modules/nix/rice/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./stylix.nix
|
||||
];
|
||||
}
|
||||
16
modules/nix/rice/stylix.nix
Normal file
16
modules/nix/rice/stylix.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user