Reconfigured 1password as module to integrate with vivaldi browser and moved it to system packages.
This commit is contained in:
parent
3b386222aa
commit
60776e90c0
6 changed files with 60 additions and 14 deletions
|
@ -33,7 +33,6 @@ with config;
|
|||
p7zip
|
||||
|
||||
# cli
|
||||
_1password
|
||||
bat
|
||||
dbus
|
||||
direnv
|
||||
|
|
|
@ -5,19 +5,20 @@ with config;
|
|||
./global.nix
|
||||
];
|
||||
|
||||
myHome.programs.firefox.enable = true;
|
||||
myHome = {
|
||||
programs.firefox.enable = true;
|
||||
shell = {
|
||||
starship.enable = true;
|
||||
fish.enable = true;
|
||||
wezterm.enable = true;
|
||||
atuind.enable = true;
|
||||
|
||||
myHome.shell = {
|
||||
starship.enable = true;
|
||||
fish.enable = true;
|
||||
wezterm.enable = true;
|
||||
atuind.enable = true;
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
username = "Joseph Hanson";
|
||||
email = "joe@veri.dev";
|
||||
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDSAmssproxG+KsVn2DfuteBAemHrmmAFzCtldpKl4J";
|
||||
git = {
|
||||
enable = true;
|
||||
username = "Joseph Hanson";
|
||||
email = "joe@veri.dev";
|
||||
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDSAmssproxG+KsVn2DfuteBAemHrmmAFzCtldpKl4J";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -26,7 +27,6 @@ with config;
|
|||
packages = with pkgs;
|
||||
[
|
||||
#apps
|
||||
_1password-gui
|
||||
discord
|
||||
flameshot
|
||||
jetbrains.datagrip
|
||||
|
|
|
@ -46,5 +46,6 @@
|
|||
mySystem = {
|
||||
purpose = "Development";
|
||||
system.motd.networkInterfaces = [ "wlp1s0" ];
|
||||
security._1password.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=1Password
|
||||
Exec=1password %U --silent
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=1password
|
||||
StartupWMClass=1Password
|
||||
Comment=Password manager and secure wallet
|
||||
MimeType=x-scheme-handler/onepassword;
|
||||
Categories=Office;
|
35
nixos/modules/nixos/security/1password/default.nix
Normal file
35
nixos/modules/nixos/security/1password/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ config, lib, ... }:
|
||||
with lib; let
|
||||
cfg = config.mySystem.security._1password;
|
||||
user = "jahanson";
|
||||
in
|
||||
{
|
||||
options.mySystem.security._1password = {
|
||||
enable = mkEnableOption "_1password";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
_1password.enable = true;
|
||||
_1password-gui = {
|
||||
enable = true;
|
||||
polkitPolicyOwners = [ "${user}" ];
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.${user} = {
|
||||
home.file = {
|
||||
".config/autostart/1password-startup.desktop".source = ./config/1password-startup.desktop;
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"1password/custom_allowed_browsers" = {
|
||||
text = ''
|
||||
vivaldi-bin
|
||||
'';
|
||||
mode = "0755";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./1password
|
||||
./acme
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue