diff --git a/options/custom/desktops/hyprland/rules.nix b/options/custom/desktops/hyprland/rules.nix index 5e2a3f6..db37024 100644 --- a/options/custom/desktops/hyprland/rules.nix +++ b/options/custom/desktops/hyprland/rules.nix @@ -223,6 +223,10 @@ in { (class "Tap Wizard 2.x86_64" ["workspace 0"]) #!! Expressions are not wrapped in ^$ + (fields { + class = "^1Password$"; + title = "^1Password$"; + } ["center"]) (fields { class = "^com\\.github\\.wwmm\\.easyeffects$"; title = "^Easy Effects$"; # Main window diff --git a/options/custom/programs/1password.nix b/options/custom/programs/1password.nix new file mode 100644 index 0000000..2349752 --- /dev/null +++ b/options/custom/programs/1password.nix @@ -0,0 +1,26 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.custom.programs."1password"; +in { + options.custom.programs."1password".enable = mkOption {default = false;}; + + config = mkIf cfg.enable { + programs = { + # https://developer.1password.com/ + _1password.enable = true; # CLI + + #!! Non-free license + # https://1password.com/ + _1password-gui = { + enable = true; + package = pkgs._1password-gui-beta; + polkitPolicyOwners = [config.custom.username]; # Desktop integration + }; + }; + }; +} diff --git a/options/custom/programs/default.nix b/options/custom/programs/default.nix index c9fcaa5..f14c0b3 100644 --- a/options/custom/programs/default.nix +++ b/options/custom/programs/default.nix @@ -37,6 +37,7 @@ with lib; { }) (mkIf config.custom.full { + "1password".enable = true; adb.enable = true; ags.enable = true; #// anyrun.enable = true; diff --git a/options/custom/programs/firefox.nix b/options/custom/programs/firefox.nix index 82ff3dc..b23a27b 100644 --- a/options/custom/programs/firefox.nix +++ b/options/custom/programs/firefox.nix @@ -124,6 +124,7 @@ in { }) (mkIf config.custom.full { + "{d634138d-c276-4fc8-924b-40a0ea21d284}" = extension "1password-x-password-manager"; # 1Password: Password Manager #// "firefox@betterttv.net" = extension "betterttv"; # BetterTTV "{446900e4-71c2-419f-a6a7-df9c091e268b}" = extension "bitwarden-password-manager"; # Bitwarden #// "FirefoxColor@mozilla.com" = extension "firefox-color"; # Firefox Color