trying stylix
This commit is contained in:
+39
-52
@@ -198,16 +198,8 @@ outputs =
|
||||
lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
# Importing nix.nix
|
||||
./generated/out_of_tree/core/nix.nix
|
||||
# theming engine
|
||||
stylix.nixosModules.stylix
|
||||
# Importing theme file
|
||||
./generated/out_of_tree/core/theme.nix
|
||||
# Import machine-specific configurations
|
||||
./generated/out_of_tree/machines/${machine}/top.nix
|
||||
# Catppuccin theme module
|
||||
# catppuccin.nixosModules.catppuccin
|
||||
# Anchoring all the other nixes
|
||||
./generated/top.nix
|
||||
# Home Manager module
|
||||
@@ -342,6 +334,10 @@ This is the top of the machine hierarchy
|
||||
|
||||
{
|
||||
imports = [
|
||||
./../../core/nix.nix
|
||||
./../../core/stylix.nix
|
||||
./../../core/gtk.nix
|
||||
./../../core/terminal.nix
|
||||
./boot.nix
|
||||
./hardware-configuration.nix
|
||||
./machine.nix
|
||||
@@ -593,26 +589,6 @@ This sets audiosystem for this machine
|
||||
#+END_SRC
|
||||
|
||||
|
||||
|
||||
** =generated/out_of_tree/core/theme.nix=
|
||||
I use the [[https://catppuccin.com/][Catppuccin]] almost everywhere. The nix module integrates almost automatically everywhere (except gtk).
|
||||
You'll notice the color values in multiple places outside this as well.
|
||||
#+BEGIN_SRC nix :tangle generated/out_of_tree/core/theme.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ pkgs, flakeRoot, ... }:
|
||||
{
|
||||
stylix = {
|
||||
enable = true;
|
||||
base16Scheme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml";
|
||||
polarity = "dark";
|
||||
targets = {
|
||||
gtk.enable = true;
|
||||
# kde.enable = false;
|
||||
# gnome.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/out_of_tree/machines/traveldroid/xdg.nix=
|
||||
This sets the XDG implementation
|
||||
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/xdg.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
@@ -625,35 +601,46 @@ This sets the XDG implementation
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/out_of_tree/core/gtk.nix=
|
||||
I use the [[https://catppuccin.com/][Catppuccin]] almost everywhere. The nix module integrates almost automatically everywhere (except gtk).
|
||||
You'll notice the color values in multiple places outside this as well.
|
||||
#+BEGIN_SRC nix :tangle generated/system/out_of_tree/gtk.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ pkgs, user, ... }:
|
||||
** =generated/out_of_tree/core/stylix.nix=
|
||||
This sets the stylix implementation
|
||||
#+BEGIN_SRC nix :tangle generated/out_of_tree/core/stylix.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ config, pkgs, flakeRoot, ... }:
|
||||
{
|
||||
home-manager.users.${user.username} = {
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||
package = pkgs.magnetic-catppuccin-gtk;
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable Stylix at system level
|
||||
stylix.nixosModules.stylix;
|
||||
# Minimal configuration
|
||||
stylix = {
|
||||
enable = true;
|
||||
base16Scheme = "${flakeRoot}/assets/system/theming/stylix/catppuccin-mocha.yaml";
|
||||
polarity = "dark";
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/out_of_tree/core/gtk.nix=
|
||||
Sets theming for GTK
|
||||
#+BEGIN_SRC nix :tangle generated/system/out_of_tree/gtk.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Stylix GTK target
|
||||
stylix.targets.gtk.enable = true;
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/out_of_tree/core/terminal.nix=
|
||||
Sets theming for the terminal
|
||||
#+BEGIN_SRC nix :tangle generated/system/out_of_tree/terminal.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Example for terminal (NVF = Neovim/terminal flavor)
|
||||
stylix.targets.nvf.enable = true;
|
||||
# Optional: feh wallpaper integration
|
||||
stylix.targets.feh.enable = true;
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/out_of_tree/core/nix.nix=
|
||||
I use the [[https://catppuccin.com/][Catppuccin]] almost everywhere. The nix module integrates almost automatically everywhere (except gtk).
|
||||
You'll notice the color values in multiple places outside this as well.
|
||||
|
||||
Reference in New Issue
Block a user