who knows

This commit is contained in:
atagen 2023-05-20 22:28:48 +10:00
parent bb2e813df8
commit aae14e214e
11 changed files with 512 additions and 218 deletions

View file

@ -4,31 +4,15 @@
lib,
config,
pkgs,
nur,
...
}: let
wlogout_style_base = dots/wlogout/style.css;
wlogout_style = pkgs.runCommandLocal "wlogout_style_base" {wlogpath = lib.strings.escape ["/"] "${pkgs.wlogout}";} ''
cp ${wlogout_style_base} $out
sed -i "s/\/usr\/share\/wlogout/$wlogpath\/share\/wlogout/g" $out
sed -i "s/\/etc\/wlogout/$wlogpath\/etc\/wlogout/g" $out
'';
}:
in {
imports = [
inputs.hyprland.homeManagerModules.default
./programs/eww/default.nix
];
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.unstable-pkgs
];
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
};
home.stateVersion = "22.11";
home.packages = with pkgs; [
@ -63,7 +47,7 @@ in {
fuzzel
kdeconnect
syncthing
# syncthing
keepassxc
git-credential-keepassxc
@ -76,6 +60,8 @@ in {
libsForQt5.qtstyleplugin-kvantum
gtk-engine-murrine
material-icons
material-design-icons
];
services.syncthing = {
@ -91,12 +77,63 @@ in {
hidpi = false;
};
recommendedEnvironment = true;
extraConfig = builtins.readFile dots/hyprland/hyprland.conf;
extraConfig = with pkgs.rice; builtins.replaceStrings
["#BGIMAGE"
"#GTKTHEME"
"#FONT"
"#ICONTHEME"
"#ACTIVEBORDER"
"#BORDER"]
["${bg.image}"
gtk.name
fonts.sansSerif.name
icons.name
palette.util.fg
palette.util.bg]
(builtins.readFile dots/hyprland/hyprland.conf);
};
programs.eww-hyprland = {
enable = true;
colors = builtins.readFile dots/eww/colors.scss;
colors = with pkgs.rice.palette;
(builtins.replaceStrings
["BLACK"
"BLCKA"
"RED"
"RDA"
"GREEN"
"GRNA"
"YELLOW"
"YLWA"
"BLUE"
"BLUA"
"MAGENTA"
"MGNA"
"CYAN"
"CYNA"
"WHITE"
"WHTA"
"FG"
"BG" ]
[normal.black
bright.black
normal.red
bright.red
normal.green
bright.green
normal.yellow
bright.yellow
normal.blue
bright.blue
normal.magenta
bright.magenta
normal.cyan
bright.cyan
normal.white
bright.white
util.fg
util.bg] (builtins.readFile dots/eww/colors.scss));
};
systemd.user.startServices = "sd-switch";
@ -113,8 +150,6 @@ in {
};
};
xresources.extraConfig = builtins.readFile ./dots/Xresources;
xdg.enable = true;
xdg.configFile =
builtins.mapAttrs (name: value: {
@ -122,12 +157,26 @@ in {
text = builtins.readFile value;
})
{
"wlogout/layout" = dots/wlogout/layout;
"wlogout/style.css" = wlogout_style;
"swaync/config.json" = dots/swaync/config.json;
"swaync/configSchema.json" = dots/swaync/configSchema.json;
"swaync/style.css" = dots/swaync/style.css;
"fuzzel/fuzzel.ini" = dots/fuzzel/fuzzel.ini;
"swaync/style.css" = with rice.palette; builtins.replaceStrings
["PANELBG"
"BORDER"
"NOTIBGNORM"
"NOTIBGHOVER"
"NOTIBGFOCUS"
"NOTIBGCLOSE"
"NOTIBGHOVERCLOSE"
"BGSELECTED"]
[util.bg
normal.black
util.bg
bright.black
bright.black
normal.black
bright.black
bright.black]
(builtins.readFile dots/swaync/style.css);
};
xdg.systemDirs.data = [
@ -136,19 +185,59 @@ in {
];
home.sessionVariables = {
GTK_THEME = "Sweet-Dark";
GTK_THEME = rice.gtk.name;
};
programs.wlogout = {
enable = true;
layout = builtins.fromJSON (builtins.readFile dots/wlogout/layout);
style = with rice.palette; builtins.replaceStrings
["/usr/share/wlogout"
"/etc/wlogout"
"WINBG"
"BTNCOL"
"BTNBG"
"BTNFOCUSBG"]
["${pkgs.wlogout}/share/wlogout"
"${pkgs.wlogout}/etc/wlogout"
util.bg
util.fg
util.bg_sel
normal.yellow]
(builtins.readFile dots/wlogout/style.css);
};
programs.fuzzel = with pkgs.rice; {
enable = true;
settings = {
main = {
dpi-aware = "no";
font = with fonts.sansSerif; lib.strings.concatStrings [name ":size=" size];
icon-theme = icons.name;
terminal = "kitty";
};
dmenu = {
exit-immediately-if-empty = "yes";
};
border = with borders; {
width = thickness;
radius = rounding;
};
colors = {
background = lib.strings.concatStrings [pkgs.rice.palette.util.bg "FF"];
text = lib.strings.concatStrings [pkgs.rice.palette.util.fg "FF"];
selection = lib.strings.concatStrings [pkgs.rice.palette.util.bg_sel "FF"];
selection-text = lib.strings.concatStrings [pkgs.rice.palette.util.fg_sel "FF"];
selection-match = lib.strings.concatStrings [pkgs.rice.palette.util.cursor_text "FF"];
match = lib.strings.concatStrings [pkgs.rice.palette.util "FF"];
border = lib.strings.concatStrings [pkgs.rice.palette.util.bg_sel "FF"];
};
};
};
gtk = {
enable = true;
theme = {
package = pkgs.sweet;
name = "Sweet-Dark";
};
iconTheme = {
package = pkgs.papirus-icon-theme;
name = "Papirus-Dark";
};
theme = rice.gtk;
iconTheme = rice.icons;
};
programs.direnv = {
@ -166,7 +255,7 @@ in {
settings = {
"browser.startup.homepage" = "about:blank";
};
extensions = with config.nur.repos.rycee.firefox-addons; [
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
vimium-c
darkreader
localcdn
@ -181,39 +270,40 @@ in {
enable = true;
# package = inputs.helix.packages.${pkgs.hostPlatform.system}.default;
settings = {
theme = "gruvbox_dark_hard";
theme = "gruvbox_dark";
editor.lsp.display-messages = true;
};
};
programs.kitty = {
programs.kitty = with rice; {
enable = true;
font = {
name = "Ellograph CF";
size = 10;
font = with fonts; {
name = monospace.name;
size = monospace.size;
};
settings = {
foreground = "#d3dae3";
background = "#060604";
cursor = "#d3dae3";
selection_foreground = "#fdbc4b";
selection_background = "#1e2233";
color0 = "#2f343f";
color1 = "#ed244e";
color2 = "#27ae60";
color3 = "#f67400";
color4 = "#2980b9";
color5 = "#c50ed2";
color6 = "#3daee9";
color7 = "#a1a9b1";
color8 = "#1e2233";
color9 = "#da4453";
color10 = "#71f79f";
color11 = "#fdbc4b";
color12 = "#1d99f3";
color13 = "#9b59b6";
color14 = "#5294e2";
color15 = "#656a73";
settings = with palette; {
foreground = util.fg;
background = util.bg;
cursor = util.cursor;
cursor_text = util.cursor_text;
selection_foreground = util.fg_sel;
selection_background = util.bg_sel;
color0 = normal.black;
color1 = normal.red;
color2 = normal.green;
color3 = normal.yellow;
color4 = normal.blue;
color5 = normal.magenta;
color6 = normal.cyan;
color7 = normal.white;
color8 = bright.black;
color9 = bright.red;
color10 = bright.green;
color11 = bright.yellow;
color12 = bright.blue;
color13 = bright.magenta;
color14 = bright.cyan;
color15 = bright.white;
};
};
@ -229,6 +319,14 @@ in {
programs.fzf = {
enable = true;
enableZshIntegration = true;
colors = with rice.palette; {
fg = util.fg;
bg = util.bg;
hl = util.cursor_text;
"fg+" = util.fg_sel;
"bg+" = util.bg_sel;
"hl+" = bright.green;
};
};
programs.zsh = {