Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add new eww base config

+17 -7
+6 -2
home/desktop/eww/default.nix
··· 1 1 { lib, pkgs, ... } @ inputs: 2 2 3 3 let 4 - inherit (import ../../../lib/colors.nix inputs) colors mkScssSyntax; 4 + inherit (import ../../../lib/colors.nix inputs) colors shell lightStroke darkStroke mkScssSyntax; 5 5 in { 6 6 home.packages = [ pkgs.eww-wayland ]; 7 7 8 - xdg.configFile."eww/_colors.scss".text = mkScssSyntax colors; 8 + xdg.configFile."eww/_colors.scss".text = mkScssSyntax (colors // { 9 + shell.gui = shell; 10 + lightStroke.gui = lightStroke; 11 + darkStroke.gui = darkStroke; 12 + }); 9 13 10 14 xdg.configFile."eww/_variables.yuck".text = ""; 11 15
+8 -4
home/desktop/eww/eww.scss
··· 1 1 @import 'colors'; 2 2 3 3 * { 4 - all: unset; //Unsets everything so you can style everything from scratch 4 + all: unset; 5 + font-size: 0.9rem; 6 + font-feature-settings: "tnum"; 7 + font-family: Inter, FontAwesome6Pro; 8 + color: $color-white; 5 9 } 6 10 7 11 //Global Styles 8 12 .bar { 9 - background-color: #3a3a3a; 10 - color: #b0b4bc; 11 - padding: 10px; 13 + background-color: $color-shell; 14 + border-radius: 1rem; 15 + padding: 15px; 12 16 } 13 17 14 18 // Styles on classes (see eww.yuck for more information)
+3 -1
lib/colors.nix
··· 9 9 mkColor = gui: cterm: cterm16: { gui=gui; cterm=cterm; cterm16=cterm16; }; 10 10 in rec { 11 11 shell = "rgba(40, 44, 52, 0.6)"; 12 + lightStroke = "rgba(248, 248, 241, 0.5)"; 13 + darkStroke = "rgba(22, 23, 29, 0.6)"; 12 14 13 15 hex = { 14 16 gutter = "16171D"; ··· 72 74 mkVimHighlight = group: { fg ? transparent, bg ? transparent, style ? "NONE" }: 73 75 "highlight ${group} guifg=${fg.gui} guibg=${bg.gui} gui=${style} ctermfg=${fg.cterm} ctermbg=${bg.cterm} cterm=${style}"; 74 76 mkLuaVariable = name: { gui, ... }: "${name} = \"${gui}\","; 75 - mkScssVariable = name: { gui, ... }: "\$${name}: ${gui};"; 77 + mkScssVariable = name: { gui, ... }: "\$color-${name}: ${gui};"; 76 78 77 79 mkVimTerminalSyntax = attrs: 78 80 (if hasAttr "terminal" attrs then ''