Changed stylix

This commit is contained in:
xeovalyte 2025-01-09 17:14:10 +01:00
parent ac8f095cce
commit fa8a1f2eec
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:kSQDrQDmKzljJzfGYcd3m9RqHi4h8rSwkZ3sQ9kBURo
3 changed files with 46 additions and 38 deletions

View File

@ -6,32 +6,15 @@
../../modules/home/default.nix
];
options = {
host = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
headless = lib.mkOption {
type = with lib.types; bool;
description = ''
Is this machine headless?
'';
};
};
config = {
home = {
username = "kiiwy";
homeDirectory = "/home/kiiwy";
};
host = "ch-clt-dsk01";
headless = false;
settings = {
hostname = "ch-clt-dsk01";
applications.common.enable = true;
applications.alacritty.enable = false;
applications.devenv.enable = false;
@ -49,6 +32,8 @@
theming.fonts.enable = true;
theming.nix-colors.enable = false;
theming.stylix.enable = true;
theming.stylix.wallpaper = "kiiwy";
theming.stylix.theme = "theme";
desktop-environments.hyprland.enable = false;
};
@ -60,6 +45,8 @@
unstable.vesktop
blender
brave
# Office
libreoffice
];
@ -70,4 +57,12 @@
home.stateVersion = "24.05";
};
options = {
settings.hostname = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
};
}

View File

@ -6,22 +6,6 @@
../../modules/home/default.nix
];
options = {
host = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
headless = lib.mkOption {
type = with lib.types; bool;
description = ''
Is this machine headless?
'';
};
};
config = {
home = {
username = "xeovalyte";
@ -29,9 +13,10 @@
};
host = "xv-laptop";
headless = false;
settings = {
hostname = "xv-laptop";
applications.common.enable = true;
applications.alacritty.enable = true;
applications.devenv.enable = true;
@ -89,4 +74,13 @@
home.stateVersion = "24.05";
};
options = {
settings.hostname = lib.mkOption {
type = with lib.types; str;
description = ''
Define the host of the machine
'';
};
};
}

View File

@ -12,6 +12,20 @@ in {
Enable stylix configuration
'';
};
settings.theming.stylix.wallpaper = lib.mkOption {
type = lib.types.enum ["wallpaper-2" "kiiwy"];
description = ''
Choose wallpaper
'';
};
settings.theming.stylix.theme = lib.mkOption {
type = lib.types.string;
description = ''
Choose theme name. Use "theme" to use them based on wallpaper generation
'';
};
};
imports = [
@ -21,9 +35,14 @@ in {
config = mkIf cfg.enable {
stylix.enable = true;
stylix.image = ../../../assets/wallpaper-2.png;
stylix.image = ../../../assets/${cfg.wallpaper};
stylix.polarity = "dark";
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/da-one-ocean.yaml";
stylix.base16Scheme = if (cfg.wallpaper == "theme") then
theme
else
"${pkgs.base16-schemes}/share/themes/da-one-ocean.yaml";
stylix.autoEnable = true;