home: improved reproducibility with nixpkgs calls rather than $PATH searches

This commit is contained in:
Aly Raffauf 2024-03-30 23:59:57 -04:00
parent a07c9ffe2c
commit 5babaf7a11
7 changed files with 48 additions and 14 deletions

View file

@ -1,6 +1,6 @@
preload = ~/.config/hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg preload = ~/.config/hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg
preload = ~/.config/hypr/wallpapers/salty-justice-NOMebOREvtc-unsplash.jpg # preload = ~/.config/hypr/wallpapers/salty-justice-NOMebOREvtc-unsplash.jpg
preload = ~/.config/hypr/wallpapers/tokyoGreen.jpg # preload = ~/.config/hypr/wallpapers/tokyoGreen.jpg
wallpaper = ,~/.config/hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg wallpaper = ,~/.config/hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg

View file

@ -3,6 +3,15 @@
options = { guiApps.fuzzel.enable = lib.mkEnableOption "Enables fuzzel."; }; options = { guiApps.fuzzel.enable = lib.mkEnableOption "Enables fuzzel."; };
config = lib.mkIf config.guiApps.fuzzel.enable { config = lib.mkIf config.guiApps.fuzzel.enable {
home.packages = with pkgs; [
(nerdfonts.override { fonts = [ "Noto" ]; })
(catppuccin-papirus-folders.override {
flavor = "frappe";
accent = "mauve";
})
];
programs.fuzzel = { programs.fuzzel = {
enable = true; enable = true;
settings = { settings = {
@ -19,6 +28,7 @@
selection-match = "#e78284FF"; selection-match = "#e78284FF";
selection-text = "#f4b8e4FF"; selection-text = "#f4b8e4FF";
text = "#fafafaFF"; text = "#fafafaFF";
border = "#ca9ee6aa";
}; };
}; };
}; };

View file

@ -3,6 +3,9 @@
options = { guiApps.mako.enable = lib.mkEnableOption "Enables mako."; }; options = { guiApps.mako.enable = lib.mkEnableOption "Enables mako."; };
config = lib.mkIf config.guiApps.mako.enable { config = lib.mkIf config.guiApps.mako.enable {
home.packages = with pkgs; [ (nerdfonts.override { fonts = [ "Noto" ]; }) ];
services.mako = { services.mako = {
enable = true; enable = true;
anchor = "top-center"; anchor = "top-center";

View file

@ -26,8 +26,8 @@
"files.autoSave" = "afterDelay"; "files.autoSave" = "afterDelay";
"git.autofetch" = true; "git.autofetch" = true;
"git.confirmSync" = false; "git.confirmSync" = false;
"nix.formatterPath" = "nixfmt"; "nix.formatterPath" = "${pkgs.nixfmt}/bin/nixfmt";
"terminal.external.linuxExec" = "alacritty"; "terminal.external.linuxExec" = "${pkgs.alacritty}/bin/alacritty";
"update.mode" = "none"; "update.mode" = "none";
"window.menuBarVisibility" = "hidden"; "window.menuBarVisibility" = "hidden";
"window.zoomPerWindow" = false; "window.zoomPerWindow" = false;

View file

@ -4,7 +4,12 @@
config = lib.mkIf config.guiApps.waybar.enable { config = lib.mkIf config.guiApps.waybar.enable {
# Packages that should be installed to the user profile. # Packages that should be installed to the user profile.
home.packages = with pkgs; [ blueberry pavucontrol ]; home.packages = with pkgs; [
blueberry
pavucontrol
(nerdfonts.override { fonts = [ "Noto" ]; })
nixfmt
];
xdg.configFile."waybar/style.css".source = ./waybar.css; xdg.configFile."waybar/style.css".source = ./waybar.css;
@ -57,7 +62,7 @@
{device_enumerate}''; {device_enumerate}'';
"tooltip-format-enumerate-connected" = "tooltip-format-enumerate-connected" =
"{device_alias} {device_address}"; "{device_alias} {device_address}";
"on-click" = "blueberry"; "on-click" = "${pkgs.blueberry}/bin/blueberry";
}; };
"pulseaudio" = { "pulseaudio" = {
"format" = " {volume}%"; "format" = " {volume}%";
@ -68,7 +73,7 @@
"handsfree" = "󰋎"; "handsfree" = "󰋎";
"headset" = "󰋎"; "headset" = "󰋎";
}; };
"on-click" = "pavucontrol -t 3"; "on-click" = "${pkgs.pavucontrol}/bin/pavucontrol -t 3";
}; };
"network" = { "network" = {
"format-wifi" = "󰣾 {signalStrength}%"; "format-wifi" = "󰣾 {signalStrength}%";
@ -78,7 +83,8 @@
"tooltip-format-wifi" = "{essid} ({signalStrength}%) 󰣾"; "tooltip-format-wifi" = "{essid} ({signalStrength}%) 󰣾";
"tooltip-format-ethernet" = "{ifname} "; "tooltip-format-ethernet" = "{ifname} ";
"tooltip-format-disconnected" = "Disconnected"; "tooltip-format-disconnected" = "Disconnected";
"on-click" = "alacritty --class nmtui -e nmtui"; "on-click" =
"${pkgs.alacritty}/bin/alacritty --class nmtui -e ${pkgs.networkmanager}/bin/nmtui";
}; };
"tray" = { "spacing" = 10; }; "tray" = { "spacing" = 10; };
"power-profiles-daemon" = { "power-profiles-daemon" = {

View file

@ -5,26 +5,41 @@
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
} }
window#waybar { window#waybar {
background: rgba (35, 38, 52, 0.8); background: rgba (35, 38, 52, 0.8);
color: #FAFAFA; color: #FAFAFA;
} }
#workspaces button { #workspaces button {
padding: 0px 5px; padding: 0px 5px;
margin: 0 0px; margin: 0 0px;
color: #FAFAFA; color: #FAFAFA;
} }
#workspaces button.active { #workspaces button.active {
color: #ca9ee6; color: #ca9ee6;
} }
#clock, #battery, #bluetooth, #network, #power-profiles-daemon, #pulseaudio, #tray {
#clock,
#battery,
#bluetooth,
#network,
#power-profiles-daemon,
#pulseaudio,
#tray {
padding: 0 10px; padding: 0 10px;
margin: 0 5px; margin: 0 5px;
} }
#battery { color: #FAFAFA; }
#battery {
color: #FAFAFA;
}
#battery.charging { #battery.charging {
color: #ca9ee6; color: #ca9ee6;
} }
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
color: #e78284; color: #e78284;
} }

View file

@ -8,19 +8,19 @@
layout = [ layout = [
{ {
label = "logout"; label = "logout";
action = "loginctl terminate-user $USER"; action = "${pkgs.systemd}/bin/loginctl terminate-user $USER";
text = "Logout"; text = "Logout";
keybind = "e"; keybind = "e";
} }
{ {
label = "shutdown"; label = "shutdown";
action = "systemctl poweroff"; action = "${pkgs.systemd}/bin/systemctl poweroff";
text = "Shutdown"; text = "Shutdown";
keybind = "s"; keybind = "s";
} }
{ {
label = "reboot"; label = "reboot";
action = "systemctl reboot"; action = "${pkgs.systemd}/bin/systemctl reboot";
text = "Reboot"; text = "Reboot";
keybind = "r"; keybind = "r";
} }