diff --git a/config/home-manager/packages/workstation/1password.nix b/config/home-manager/packages/workstation/1password.nix deleted file mode 100644 index 951329d..0000000 --- a/config/home-manager/packages/workstation/1password.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ pkgs, pkgs-unstable, ... }: -{ - home.packages = [ - pkgs-unstable._1password-cli - pkgs-unstable._1password-gui - ]; - - xdg.configFile."1password/custom_allowed_browsers" = { - text = '' - firefox - brave - zen - ''; - executable = true; - }; -} diff --git a/config/nixos/packages/workstation/1password.nix b/config/nixos/packages/workstation/1password.nix new file mode 100644 index 0000000..8923165 --- /dev/null +++ b/config/nixos/packages/workstation/1password.nix @@ -0,0 +1,25 @@ +{ pkgs, pkgs-unstable, ... }: +{ + # Enables the 1Password CLI + programs._1password = { + enable = true; + }; + + # Enables the 1Password desktop app + programs._1password-gui = { + enable = true; + polkitPolicyOwners = [ "menno" ]; + package = pkgs-unstable._1password-gui; + }; + + environment.etc = { + "1password/custom_allowed_browsers" = { + text = '' + firefox + brave + zen + ''; + mode = "0755"; + }; + }; +}