diff --git a/modules/hm/niri/config.kdl b/modules/hm/niri/config.kdl index 39fd909..71f107e 100644 --- a/modules/hm/niri/config.kdl +++ b/modules/hm/niri/config.kdl @@ -269,7 +269,7 @@ layout { // See the binds section below for more spawn examples. // This line starts waybar, a commonly used bar for Wayland compositors. -spawn-at-startup "waybar" +spawn-at-startup "swaybg -m fill -i ${pkgs.nixos-artwork.wallpapers.simple-dark.gray.src}" spawn-at-startup "fcitx5 -dr" @@ -366,7 +366,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } - Mod+D hotkey-overlay-title="Run an Application: vicinae" { spawn "vicinae"; } + Mod+D hotkey-overlay-title="Run an Application: vicinae" { spawn "vicinae toggle"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } // Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc. diff --git a/modules/nixos/desktop.nix b/modules/nixos/desktop.nix index e546d84..d3ae75c 100644 --- a/modules/nixos/desktop.nix +++ b/modules/nixos/desktop.nix @@ -1,7 +1,13 @@ { pkgs, lib, ... }: { nixpkgs.config = { - allowUnfreePredicate = pkg: lib.elem (lib.getName pkg) [ "google-chrome" "vscode" ]; + allowUnfreePredicate = pkg: lib.elem (lib.getName pkg) [ + "google-chrome" + "vscode" + "1password" + "1password-gui" + "1password-cli" + ]; }; services.xserver.enable = true; @@ -34,6 +40,7 @@ xwayland-satellite google-chrome vscode + _1password-gui _1password ]; environment.sessionVariables = { @@ -52,4 +59,7 @@ ]; }; }; + + programs._1password.enable = true; + programs._1password-gui.enable = true; }