feat: set up 'stylix'
This commit is contained in:
@@ -1 +0,0 @@
|
||||
set -g status-style bg=default
|
||||
@@ -1,10 +1,5 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
services.mako = {
|
||||
enable = true;
|
||||
settings = {
|
||||
border-color = lib.mkForce "#bbbbbb";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
16
home/modules/pomo.nix
Normal file
16
home/modules/pomo.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
dotsPath,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
pomoScript = builtins.readFile "${dotsPath}/.bin/pomo";
|
||||
pomoScriptNoShebang = pkgs.lib.removePrefix "#!/usr/bin/env python3\n" pomoScript;
|
||||
pomo = pkgs.writers.writePython3Bin "pomo" {
|
||||
libraries = with pkgs.python3Packages; [ plyer ];
|
||||
} pomoScriptNoShebang;
|
||||
in
|
||||
{
|
||||
home.packages = [ pomo ];
|
||||
}
|
||||
@@ -5,24 +5,22 @@
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
theme = import ../../modules/stylix/theme.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
imports = [ inputs.stylix.homeModules.stylix ];
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
polarity = "dark";
|
||||
base16Scheme = ../../modules/stylix/zenwritten-dark.yaml;
|
||||
override = {
|
||||
base04 = "8E8E8E"; # improved contrast
|
||||
};
|
||||
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } ''
|
||||
magick -size 1x1 xc:#191919 $out
|
||||
'';
|
||||
inherit (theme)
|
||||
polarity
|
||||
base16Scheme
|
||||
override
|
||||
image
|
||||
;
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.iosevka-bin.override { variant = "SS08"; };
|
||||
name = "Iosevka Term SS08";
|
||||
};
|
||||
monospace = theme.monospaceFont;
|
||||
serif = config.stylix.fonts.monospace;
|
||||
sansSerif = config.stylix.fonts.monospace;
|
||||
emoji = config.stylix.fonts.monospace;
|
||||
@@ -32,6 +30,10 @@
|
||||
profileNames = [ "default" ];
|
||||
colorTheme.enable = true;
|
||||
};
|
||||
librewolf = {
|
||||
profileNames = [ "default" ];
|
||||
colorTheme.enable = true;
|
||||
};
|
||||
gnome.enable = false;
|
||||
gtk.enable = false;
|
||||
kitty = {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
pkgs,
|
||||
dotsPath,
|
||||
...
|
||||
}:
|
||||
{ pkgs, dotsPath, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
home.packages = with pkgs; [
|
||||
@@ -16,9 +13,7 @@
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".config/tmux/tmux.regular.conf".source = dotsPath + "/.config/tmux/tmux.regular.conf";
|
||||
".config/tmux/hooks/tmux.ssh.conf".source = dotsPath + "/.config/tmux/hooks/tmux.ssh.conf";
|
||||
".config/tmux/hooks/tmux.regular.conf".source = dotsPath + "/.config/tmux/hooks/tmux.regular.conf";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,21 +5,22 @@
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
theme = import ./theme.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
imports = [ inputs.stylix.nixosModules.stylix ];
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
polarity = "dark";
|
||||
base16Scheme = ../stylix/zenwritten-dark.yaml;
|
||||
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } ''
|
||||
magick -size 1x1 xc:#191919 $out
|
||||
'';
|
||||
inherit (theme)
|
||||
polarity
|
||||
base16Scheme
|
||||
override
|
||||
image
|
||||
;
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.iosevka-bin.override { variant = "SS08"; };
|
||||
name = "Iosevka Term SS08";
|
||||
};
|
||||
monospace = theme.monospaceFont;
|
||||
serif = config.stylix.fonts.monospace;
|
||||
sansSerif = config.stylix.fonts.monospace;
|
||||
emoji = config.stylix.fonts.monospace;
|
||||
@@ -31,6 +32,11 @@
|
||||
{
|
||||
stylix.targets = {
|
||||
firefox.profileNames = [ "default" ];
|
||||
librewolf.profileNames = [ "default" ];
|
||||
kitty.variant256Colors = true;
|
||||
gnome.enable = false;
|
||||
gtk.enable = false;
|
||||
nixvim.enable = false;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
16
modules/stylix/theme.nix
Normal file
16
modules/stylix/theme.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs }:
|
||||
|
||||
{
|
||||
polarity = "dark";
|
||||
base16Scheme = ./zenwritten-dark.yaml;
|
||||
override = {
|
||||
base04 = "8E8E8E";
|
||||
};
|
||||
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } ''
|
||||
magick -size 1x1 xc:#191919 $out
|
||||
'';
|
||||
monospaceFont = {
|
||||
package = pkgs.iosevka-bin.override { variant = "SS08"; };
|
||||
name = "Iosevka Term SS08";
|
||||
};
|
||||
}
|
||||
18
stylix/zenwritten-dark.yaml
Normal file
18
stylix/zenwritten-dark.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
scheme: "zenwritten-dark"
|
||||
author: "derived from zenbones.nvim zenwritten_dark"
|
||||
base00: "191919" # background
|
||||
base01: "303030" # inactive tab bg
|
||||
base02: "404040" # selection bg
|
||||
base03: "8E8E8E" # bright white (comments)
|
||||
base04: "3D3839" # bright black
|
||||
base05: "BBBBBB" # foreground
|
||||
base06: "C9C9C9" # cursor
|
||||
base07: "EEEEEE" # light foreground
|
||||
base08: "DE6E7C" # red
|
||||
base09: "B77E64" # yellow (orange)
|
||||
base0A: "D68C67" # bright yellow
|
||||
base0B: "819B69" # green
|
||||
base0C: "66A5AD" # cyan
|
||||
base0D: "6099C0" # blue
|
||||
base0E: "B279A7" # magenta
|
||||
base0F: "65435E" # active tab bg (brown)
|
||||
Reference in New Issue
Block a user