feat(systems theme): add stylix, nix-colors

This commit is contained in:
madmin 2024-07-18 20:01:21 +02:00
parent 3160709949
commit 584b840bba
3 changed files with 62 additions and 10 deletions

View File

@ -65,10 +65,15 @@
# -------------------------- Nix-Colors --------------------------- #
# TODO
# https://github.com/Misterio77/nix-colors
#nix-colors = {
# url = "github:misterio77/nix-colors";
# inputs.nixpkgs.follows = "nixpkgs";
#};
nix-colors = {
url = "github:misterio77/nix-colors";
inputs.nixpkgs.follows = "nixpkgs";
};
# ---------------------------- Stylix ----------------------------- #
stylix = {
url = "github:danth/stylix";
};
# ====================== Personal Repositories ====================== #
# Private secrets repo. See ./docs/secretsmgmt.md

View File

@ -0,0 +1,40 @@
{ pkgs, inputs, configLib, ... }:
{
stylix = {
enable = true;
polarity = "dark"; # TODO: light
image = ( configLib.relativeToRoot "assets/worm.png" );
base16Scheme = inputs.nix-colors.colorSchemes.atelier-dune; #TODO: atelier-dune-light
cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice"; #TODO: light - Modern-Classic
size = 24;
};
fonts = {
monospace = {
package = pkgs.nerdfonts.override {fonts = ["GeistMono"];};
name = "Geist Mono Vercel Nerd Font Mono";
};
sansSerif = {
package = pkgs.liberation_ttf;
name = "Liberation Sans";
};
serif = {
package = pkgs.eb-garamond;
name = "EB Garamond Regular";
};
sizes = {
applications = 12;
terminal = 14;
desktop = 12;
popups = 10;
};
};
opacity = {
applications = 1.0;
terminal = 0.8;
desktop = 1.0;
popups = 1.0;
};
};
}

View File

@ -10,15 +10,15 @@
{ inputs, configLib, ... }:
{
imports = [
#################### Every Host Needs This ####################
# ================= Every Host Needs This ==================== #
./hardware-configuration.nix
#################### Hardware Modules ####################
# ==================== Hardware Modules ====================== #
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-gpu-amd
inputs.hardware.nixosModules.common-pc-ssd
#################### Disk Layout ####################
# ====================== Disk Layout ========================= #
inputs.disko.nixosModules.disko
( configLib.relativeToRoot "systems/common/disks/jeroboam.nix")
{
@ -28,12 +28,15 @@
swapSize = "16";
};
}
# ======================= Themeing ========================== #
inputs.stylix.nixosModules.stylix
]
++ (map configLib.relativeToRoot [
# = Required Configs ####################
"systems/common/core"
#################### Host-specific Configs ####################
# --------------- Host-specific Configs -------------------- #
#"systems/common/optional/services/clamav.nix" # depends on optional/msmtp.nix
#"systems/common/optional/msmtp.nix" # required for emailing clamav alerts
#"systems/common/optional/services/openssh.nix" # allow remote ssh
@ -42,13 +45,17 @@
"systems/common/optional/boot/loud_boot.nix" # for testing, otherwise quiet_boot.nix
#"systems/common/optional/boot/quiet_boot.nix" # with plymouth pretty custom load sequence
"systems/common/optional/boot/initrd_luks.nix" # luks encryption with pass only
# Desktop
# ------------------------ Desktop --------------------------- #
#"systems/common/optional/services/greetd.nix" # display manager
#"systems/common/optional/hyprland.nix" # window manager
#################### Users to Create ####################
# ---------------------- Users to Create ---------------------- #
#"systems/common/users/zhuangzi"
"systems/common/users/laozi"
# ---------------------- Themeing ----------------------------- #
"systems/common/optional/stylix.nix"
]);
# set custom autologin options. see greetd.nix for details