Enable stylix and set sane defaults
This commit is contained in:
parent
7c857443f3
commit
c716457192
@ -11,6 +11,9 @@ in
|
||||
./profile
|
||||
./programs
|
||||
./sessions
|
||||
|
||||
# modules
|
||||
./stylix.nix # imports inputs.stylix
|
||||
];
|
||||
config = {};
|
||||
options.nixfiles = {
|
||||
|
14
home/stylix.nix
Normal file
14
home/stylix.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ pkgs, lib, config, inputs, ... }@args:
|
||||
{
|
||||
imports = [
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
];
|
||||
config = {
|
||||
# only if styix is standalone
|
||||
stylix = lib.mkIf (!(args ? osConfig && args.osConfig ? stylix )) {
|
||||
autoEnable = lib.mkDefault false;
|
||||
image = lib.mkDefault "${pkgs.nixfiles-assets}/share/wallpapers/nixfiles-static/Djayjesse-finding_life.png";
|
||||
base16Scheme = lib.mkDefault "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||
};
|
||||
};
|
||||
}
|
@ -18,6 +18,7 @@ in
|
||||
# modules
|
||||
inputs.nix-minecraft.nixosModules.minecraft-servers
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
./stylix.nix # imports inputs.stylix
|
||||
];
|
||||
config = {};
|
||||
options.nixfiles = {
|
||||
|
26
system/stylix.nix
Normal file
26
system/stylix.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ pkgs, config, lib, inputs, ... } @ args:
|
||||
{
|
||||
imports = [
|
||||
inputs.stylix.nixosModules.stylix
|
||||
];
|
||||
|
||||
config = {
|
||||
# stylix defaults (this is an external module so i don't mind setting sane defaults right here).
|
||||
stylix = {
|
||||
# don't mess with things by default. note: this still messes with things
|
||||
# by default; the stylix.enable option is currently being added, see
|
||||
# danth/stylix#244
|
||||
autoEnable = lib.mkDefault false;
|
||||
|
||||
image = lib.mkDefault "${pkgs.nixfiles-assets}/share/wallpapers/nixfiles-static/Djayjesse-finding_life.png";
|
||||
base16Scheme = lib.mkDefault "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||
homeManagerIntegration = {
|
||||
# use system config in home-manager
|
||||
followSystem = lib.mkDefault true;
|
||||
|
||||
# I will manually import within home-manager so it works standalone
|
||||
autoImport = lib.mkDefault false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user