feat: stylix
This commit is contained in:
parent
ed196164d0
commit
87d7454dd1
9 changed files with 71 additions and 58 deletions
|
@ -3,6 +3,7 @@
|
||||||
../options
|
../options
|
||||||
|
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
./stylix
|
||||||
|
|
||||||
./home.nix
|
./home.nix
|
||||||
];
|
];
|
||||||
|
|
21
modules/base/stylix/default.nix
Normal file
21
modules/base/stylix/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Before Width: | Height: | Size: 4.7 MiB After Width: | Height: | Size: 4.7 MiB |
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./home.nix
|
./home.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
./stylix.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
3
modules/darwin/base/stylix.nix
Normal file
3
modules/darwin/base/stylix.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{inputs, ...}: {
|
||||||
|
imports = [inputs.stylix.darwinModules.stylix];
|
||||||
|
}
|
|
@ -2,10 +2,12 @@
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./drivers.nix
|
./drivers.nix
|
||||||
|
./fonts.nix
|
||||||
./home.nix
|
./home.nix
|
||||||
./i18n.nix
|
./i18n.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
./stylix.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
10
modules/nixos/base/fonts.nix
Normal file
10
modules/nixos/base/fonts.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
fonts = {
|
||||||
|
enableDefaultPackages = true;
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
corefonts
|
||||||
|
noto-fonts
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
33
modules/nixos/base/stylix.nix
Normal file
33
modules/nixos/base/stylix.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue