From 4e3e4d2baeff4ee18dae0211a572252dd269e9f7 Mon Sep 17 00:00:00 2001 From: EinEtwas Date: Mon, 14 Oct 2024 23:24:14 +0200 Subject: [PATCH] feat: add wofi; update os-update to properly use nom --- home/default.nix | 1 + home/packages.nix | 4 +++- home/wofi.nix | 48 +++++++++++++++++++++++++++++++++++++++++++++++ modules/shell.nix | 2 +- 4 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 home/wofi.nix diff --git a/home/default.nix b/home/default.nix index 121554d..263befd 100644 --- a/home/default.nix +++ b/home/default.nix @@ -31,6 +31,7 @@ ./waybar.nix ./dunst.nix ./packages.nix + ./wofi.nix ]; }; }; diff --git a/home/packages.nix b/home/packages.nix index 428ade1..fa36ed3 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -4,17 +4,19 @@ vesktop gparted polkit_gnome + gh # github # For Hyprland hotkeys: brightnessctl playerctl hyprshot - # waybar # to better find execs nix-index nix-output-monitor expect # for the unbuffer command + + vscode ]; nixpkgs.config.vesktop.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; } diff --git a/home/wofi.nix b/home/wofi.nix new file mode 100644 index 0000000..c0c2eaf --- /dev/null +++ b/home/wofi.nix @@ -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; +} +''; + }; +} diff --git a/modules/shell.nix b/modules/shell.nix index e79425c..60b8b2f 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -5,7 +5,7 @@ programs.zsh.ohMyZsh.theme = "agnoster"; 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; [