working maybe?
This commit is contained in:
parent
6d7ffc5cc4
commit
6abc7fe210
70 changed files with 406 additions and 1528 deletions
1
modules/styling/ags.nix
Normal file
1
modules/styling/ags.nix
Normal file
|
@ -0,0 +1 @@
|
|||
_: {}
|
6
modules/styling/default.nix
Normal file
6
modules/styling/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./ags.nix
|
||||
./stylix.nix
|
||||
];
|
||||
}
|
102
modules/styling/stylix.nix
Normal file
102
modules/styling/stylix.nix
Normal file
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.modules.themes.stylix;
|
||||
inherit (config.modules.themes.stylix) scheme image;
|
||||
inherit (config.modules.themes.stylix.cursor) size;
|
||||
inherit (config.modules.themes.stylix.fontsizes) terminal popups;
|
||||
inherit (config.modules.other.system) username;
|
||||
in {
|
||||
options.modules.themes.stylix = {
|
||||
enable = lib.mkEnableOption "stylix";
|
||||
scheme = lib.mkOption {
|
||||
description = " Color Scheme";
|
||||
type = lib.types.str;
|
||||
};
|
||||
image = lib.mkOption {
|
||||
description = "Image";
|
||||
type = lib.types.path;
|
||||
};
|
||||
cursor = {
|
||||
size = lib.mkOption {
|
||||
description = "Cursor Size";
|
||||
type = lib.types.int;
|
||||
};
|
||||
package = lib.mkOption {
|
||||
description = "Cursor Package";
|
||||
type = lib.types.package;
|
||||
};
|
||||
name = lib.mkOption {
|
||||
description = "Cursor Name";
|
||||
type = lib.type.str;
|
||||
};
|
||||
};
|
||||
fontsizes = {
|
||||
terminal = lib.mkOption {
|
||||
description = "Terminal font size";
|
||||
type = lib.types.int;
|
||||
};
|
||||
popups = lib.mkOption {
|
||||
description = "Popup font size";
|
||||
type = lib.types.int;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
stylix = {
|
||||
enable = true;
|
||||
base16Scheme = scheme;
|
||||
inherit image;
|
||||
polarity = "dark";
|
||||
autoEnable = true;
|
||||
cursor = {
|
||||
inherit size;
|
||||
#size = 16;
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Classic";
|
||||
};
|
||||
fonts = {
|
||||
sizes = {
|
||||
inherit terminal popups;
|
||||
};
|
||||
monospace = {
|
||||
package =
|
||||
pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
|
||||
name = "JetBrainsMono";
|
||||
};
|
||||
serif = {
|
||||
package = pkgs.noto-fonts;
|
||||
name = "Noto Serif";
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.lexend;
|
||||
name = "Lexend";
|
||||
};
|
||||
emoji = {
|
||||
package = pkgs.noto-fonts-emoji;
|
||||
name = "Noto Color Emoji";
|
||||
};
|
||||
};
|
||||
opacity = {
|
||||
applications = 0.9;
|
||||
popups = 0.9;
|
||||
desktop = 0.9;
|
||||
terminal = 0.85;
|
||||
};
|
||||
targets = {
|
||||
console.enable = true;
|
||||
fish.enable = true;
|
||||
grub.enable = false;
|
||||
grub.useImage = true;
|
||||
gtk.enable = true;
|
||||
lightdm.enable = true;
|
||||
nixos-icons.enable = true;
|
||||
nixvim.enable = true;
|
||||
plymouth.logoAnimated = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue