feat: add wofi; update os-update to properly use nom

This commit is contained in:
EinEtwas 2024-10-14 23:24:14 +02:00
parent e82d1ba63e
commit 4e3e4d2bae
4 changed files with 53 additions and 2 deletions

View file

@ -31,6 +31,7 @@
./waybar.nix ./waybar.nix
./dunst.nix ./dunst.nix
./packages.nix ./packages.nix
./wofi.nix
]; ];
}; };
}; };

View file

@ -4,17 +4,19 @@
vesktop vesktop
gparted gparted
polkit_gnome polkit_gnome
gh # github
# For Hyprland hotkeys: # For Hyprland hotkeys:
brightnessctl brightnessctl
playerctl playerctl
hyprshot hyprshot
# waybar
# to better find execs # to better find execs
nix-index nix-index
nix-output-monitor nix-output-monitor
expect # for the unbuffer command expect # for the unbuffer command
vscode
]; ];
nixpkgs.config.vesktop.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; nixpkgs.config.vesktop.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
} }

48
home/wofi.nix Normal file
View file

@ -0,0 +1,48 @@
{ config, pkgs, ... }:
{
programs.wofi = {
enable = true;
style = ''
window {
margin: 0px;
border: 1px solid #88c0d0;
background-color: #2e3440;
}
#input {
margin: 5px;
border: none;
color: #d8dee9;
background-color: #3b4252;
}
#inner-box {
margin: 5px;
border: none;
background-color: #2e3440;
}
#outer-box {
margin: 5px;
border: none;
background-color: #2e3440;
}
#scroll {
margin: 0px;
border: none;
}
#text {
margin: 5px;
border: none;
color: #d8dee9;
}
#entry:selected {
background-color: #3b4252;
}
'';
};
}

View file

@ -5,7 +5,7 @@
programs.zsh.ohMyZsh.theme = "agnoster"; programs.zsh.ohMyZsh.theme = "agnoster";
environment.shellAliases = { environment.shellAliases = {
os-update = "unbuffer sudo nixos-rebuild switch --flake '/home/rhea/nix-config' |& nom"; os-update = "sudo nixos-rebuild switch --flake \".#$HOST\" --log-format internal-json -v |& nom --json";
}; };
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [