From 8cc2802a150986a3f9bec2620dda4b4531ce6fc7 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:15:32 -0500 Subject: [PATCH] add stylix --- boxes/desktop/configuration.nix | 4 +++- common/systemModules/stylix.nix | 25 +++++++++++++++++++++++++ common/systemModules/tokyonight.yaml | 21 +++++++++++++++++++++ flake.nix | 17 +++++++++++++++-- 4 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 common/systemModules/stylix.nix create mode 100644 common/systemModules/tokyonight.yaml diff --git a/boxes/desktop/configuration.nix b/boxes/desktop/configuration.nix index 37774c5..97c90a6 100644 --- a/boxes/desktop/configuration.nix +++ b/boxes/desktop/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ config, pkgs, ... }: +{ config, pkgs, inputs, ... }: { imports = [ @@ -15,6 +15,8 @@ ../../common/systemModules/gaming.nix ../../common/systemModules/crypt.nix ../../common/systemModules/printing.nix + ../../common/systemModules/stylix.nix + inputs # USERS ../../common/users/meyer ]; diff --git a/common/systemModules/stylix.nix b/common/systemModules/stylix.nix new file mode 100644 index 0000000..d91121c --- /dev/null +++ b/common/systemModules/stylix.nix @@ -0,0 +1,25 @@ +{ pkgs, config, ... }: +{ + stylix = { + enable = true; + base16scheme = ./tokyonight.yaml; + fonts = { + emoji = { + package = pkgs.twemoji-color-font; + name = "Twemoji Color Emoji"; + }; + sansSerif = { + package = pkgs.nerdfonts; + name = "ComicShannsMono Nerd Font Mono"; + }; + serif = { + package = pkgs.nerdfonts; + name = "ComicShannsMono Nerd Font Mono"; + }; + monospace = { + package = pkgs.nerdfonts; + name = "ComicShannsMono Nerd Font Mono"; + }; + }; + }; +} diff --git a/common/systemModules/tokyonight.yaml b/common/systemModules/tokyonight.yaml new file mode 100644 index 0000000..0db9962 --- /dev/null +++ b/common/systemModules/tokyonight.yaml @@ -0,0 +1,21 @@ +system: "base16" +name: "Tokyo Night Dark" +author: "Michaƫl Ball" +variant: "dark" +palette: + base00: "#1A1B26" + base01: "#16161E" + base02: "#2F3549" + base03: "#444B6A" + base04: "#787C99" + base05: "#A9B1D6" + base06: "#CBCCD1" + base07: "#D5D6DB" + base08: "#C0CAF5" + base09: "#A9B1D6" + base0A: "#0DB9D7" + base0B: "#9ECE6A" + base0C: "#B4F9F8" + base0D: "#2AC3DE" + base0E: "#BB9AF7" + base0F: "#F7768E" diff --git a/flake.nix b/flake.nix index 8022265..b35d237 100644 --- a/flake.nix +++ b/flake.nix @@ -14,8 +14,18 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + stylix = { + url = "github:danth/stylix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { self, nixpkgs, nixos-wsl, ... }@inputs: + outputs = + { + self, + nixpkgs, + nixos-wsl, + ... + }@inputs: # let # boxes = [ # "default" @@ -35,12 +45,15 @@ ]; }; nix-desktop-evo4b5 = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; + specialArgs = { + inherit inputs; + }; system = "x86_64-linux"; modules = [ ./boxes/desktop/configuration.nix inputs.home-manager.nixosModules.default inputs.nix-index-database.nixosModules.nix-index + inputs.stylix.nixosModules.stylix { programs.nix-index-database.comma.enable = true; } ]; };