feat: stylix

This commit is contained in:
punkfairie 2025-05-25 17:24:24 -07:00
parent ed196164d0
commit 87d7454dd1
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
9 changed files with 71 additions and 58 deletions

View file

@ -3,6 +3,7 @@
../options
./nix.nix
./stylix
./home.nix
];

View file

@ -0,0 +1,21 @@
{pkgs, ...}: {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine.yaml";
override = {slug = "rose-pine";};
image = ./wallpaper.png;
fonts = {
monospace = {
package = pkgs.maple-mono-NF;
name = "Maple Mono";
};
sizes = {
terminal = 11;
};
};
};
}

View file

Before

Width:  |  Height:  |  Size: 4.7 MiB

After

Width:  |  Height:  |  Size: 4.7 MiB

View file

@ -2,5 +2,6 @@
imports = [
./home.nix
./nix.nix
./stylix.nix
];
}

View file

@ -0,0 +1,3 @@
{inputs, ...}: {
imports = [inputs.stylix.darwinModules.stylix];
}

View file

@ -2,10 +2,12 @@
imports = [
./boot.nix
./drivers.nix
./fonts.nix
./home.nix
./i18n.nix
./networking.nix
./nix.nix
./stylix.nix
./users.nix
];
}

View file

@ -0,0 +1,10 @@
{pkgs, ...}: {
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
corefonts
noto-fonts
];
};
}

View file

@ -0,0 +1,33 @@
{
inputs,
pkgs,
...
}: {
imports = [inputs.stylix.nixosModules.stylix];
config = {
stylix = {
enable = true;
fonts = {
serif = {
package = pkgs.eb-garamond;
name = "EB Garamond";
};
sansSerif = {
package = pkgs.dm-sans;
name = "DeepMind Sans";
};
emoji = {
package = pkgs.whatsapp-emoji-font;
name = "Apple Color Emoji";
};
};
cursor = {
package = pkgs.rose-pine-cursor;
name = "BreezeX-RosePine-Linux";
};
};
};
}

View file

@ -1,58 +0,0 @@
{
lib,
config,
pkgs,
...
}: let
cfg = config.marleyos.appearance.base;
in {
options.marleyos.appearance.base.enable = lib.mkEnableOption "base";
config = lib.mkIf cfg.enable {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine.yaml";
override = {slug = "rose-pine";};
image = ./wallpaper.png;
fonts = {
serif = {
package = pkgs.eb-garamond;
name = "EB Garamond";
};
sansSerif = {
package = pkgs.dm-sans;
name = "DeepMind Sans";
};
monospace = {
package = pkgs.maple-mono-NF;
name = "Maple Mono";
};
emoji = {
package = pkgs.whatsapp-emoji-font;
name = "Apple Color Emoji";
};
sizes = {
terminal = 11;
};
};
cursor = {
package = pkgs.rose-pine-cursor;
name = "BreezeX-RosePine-Linux";
};
};
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
corefonts
noto-fonts
];
};
};
}