feat: complete overhaul. hyprland -> dwl; foot -> ghostty; nushell -> fish; stylix: completely custom again
This commit is contained in:
+76
-18
@@ -11,10 +11,11 @@ let
|
||||
phases = "buildPhase";
|
||||
buildPhase = ''
|
||||
mkdir -p $out/
|
||||
for FILE in ${pkgs.base16-schemes}/share/themes/*; do
|
||||
FILEBASENAME="$(basename $FILE .yaml).json"
|
||||
cat $FILE | ${pkgs.yaml2json}/bin/yaml2json | sed s/#//g > $out/$FILEBASENAME
|
||||
done
|
||||
#for FILE in ${pkgs.base16-schemes}/share/themes/*; do
|
||||
FILE=${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml
|
||||
FILEBASENAME="$(basename $FILE .yaml).json"
|
||||
cat $FILE | ${pkgs.yaml2json}/bin/yaml2json | sed s/#//g > $out/$FILEBASENAME
|
||||
#done
|
||||
ls -l $out/
|
||||
'';
|
||||
};
|
||||
@@ -27,6 +28,11 @@ let
|
||||
name = "CaskaydiaCove Nerd Font";
|
||||
};
|
||||
|
||||
emojiFont = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Sans Mono";
|
||||
};
|
||||
|
||||
makeTheme =
|
||||
jsonScheme: polarity:
|
||||
let
|
||||
@@ -37,7 +43,7 @@ let
|
||||
base16Scheme.palette = palette;
|
||||
inherit polarity;
|
||||
fonts = {
|
||||
emoji = font;
|
||||
emoji = emojiFont;
|
||||
monospace = font;
|
||||
sansSerif = font;
|
||||
serif = font;
|
||||
@@ -64,19 +70,71 @@ let
|
||||
|
||||
in
|
||||
{
|
||||
stylix = makeTheme "catppuccin-mocha" "dark";
|
||||
#stylix = makeTheme "catppuccin-mocha" "dark";
|
||||
|
||||
specialisation = {
|
||||
catppuccin-mocha.configuration.stylix = lib.mkForce (makeTheme "catppuccin-mocha" "dark");
|
||||
catppuccin-latte.configuration.stylix = lib.mkForce (makeTheme "catppuccin-latte" "light");
|
||||
gruvbox-dark-hard.configuration.stylix = lib.mkForce (makeTheme "gruvbox-dark-hard" "dark");
|
||||
heetch.configuration.stylix = lib.mkForce (makeTheme "heetch" "dark");
|
||||
};
|
||||
#specialisation = {
|
||||
# catppuccin-mocha.configuration.stylix = lib.mkForce (makeTheme "catppuccin-mocha" "dark");
|
||||
# catppuccin-latte.configuration.stylix = lib.mkForce (makeTheme "catppuccin-latte" "light");
|
||||
# gruvbox-dark-hard.configuration.stylix = lib.mkForce (makeTheme "gruvbox-dark-hard" "dark");
|
||||
# heetch.configuration.stylix = lib.mkForce (makeTheme "heetch" "dark");
|
||||
#};
|
||||
|
||||
security.sudo.extraConfig = ''
|
||||
${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/catppuccin-mocha/bin/switch-to-configuration
|
||||
${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/catppuccin-latte/bin/switch-to-configuration
|
||||
${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/gruvbox-dark-hard/bin/switch-to-configuration
|
||||
${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/heetch/bin/switch-to-configuration
|
||||
'';
|
||||
stylix =
|
||||
let
|
||||
palette = {
|
||||
base00 = "11111a"; # #11111a
|
||||
base01 = "181825"; # #181825
|
||||
base02 = "313244"; # #313244
|
||||
base03 = "45475a"; # #45475a
|
||||
base04 = "585b70"; # #585b70
|
||||
base05 = "cdd6f4"; # #cdd6f4
|
||||
base06 = "f5e0dc"; # #f5e0dc
|
||||
base07 = "b4befe"; # #b4befe
|
||||
base08 = "f38ba8"; # #f38ba8
|
||||
base09 = "fab387"; # #fab387
|
||||
base0A = "f9e2af"; # #f9e2af
|
||||
base0B = "a6e3a1"; # #a6e3a1
|
||||
base0C = "94e2d5"; # #94e2d5
|
||||
base0D = "f5c2e7"; # #f5c2e7
|
||||
base0E = "cba6f7"; # #cba6f7
|
||||
base0F = "f2cdcd"; # #f2cdcd
|
||||
};
|
||||
polarity = "dark";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
base16Scheme.palette = palette;
|
||||
inherit polarity;
|
||||
fonts = {
|
||||
emoji = emojiFont;
|
||||
monospace = font;
|
||||
sansSerif = font;
|
||||
serif = font;
|
||||
};
|
||||
image =
|
||||
let
|
||||
wallpaper = inputs.nix-wallpaper.packages.${pkgs.stdenv.hostPlatform.system}.default.override {
|
||||
width = 2560;
|
||||
height = 1440;
|
||||
backgroundColor = "#${palette.base00}";
|
||||
logoColors = {
|
||||
color0 = "#${palette.base0D}";
|
||||
color1 = "#${palette.base0D}";
|
||||
color2 = "#${palette.base0D}";
|
||||
color3 = "#${palette.base0D}";
|
||||
color4 = "#${palette.base0D}";
|
||||
color5 = "#${palette.base0D}";
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
"${wallpaper}/share/wallpapers/nixos-wallpaper.png";
|
||||
};
|
||||
|
||||
#security.sudo.extraConfig = ''
|
||||
# ${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/catppuccin-mocha/bin/switch-to-configuration
|
||||
# ${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/catppuccin-latte/bin/switch-to-configuration
|
||||
# ${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/gruvbox-dark-hard/bin/switch-to-configuration
|
||||
# ${userName} ALL = (root) NOPASSWD: /nix/var/nix/profiles/system/specialisation/heetch/bin/switch-to-configuration
|
||||
#'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user