aboutsummaryrefslogtreecommitdiff
path: root/users/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-29 20:21:12 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-29 20:22:11 -0700
commitff85dcdcfe99c7043d039170570661a109098f5f (patch)
tree3ed324889a13252e8566e84cd0e0f0377dbe05da /users/profiles
parentcorrect syntax for imports (diff)
downloadinfra-ff85dcdcfe99c7043d039170570661a109098f5f.tar.gz
add a home-manager module for 1password
The module takes care of configuring the 1password SSH agent.
Diffstat (limited to 'users/profiles')
-rw-r--r--users/profiles/mac.nix2
-rw-r--r--users/profiles/work.nix11
2 files changed, 12 insertions, 1 deletions
diff --git a/users/profiles/mac.nix b/users/profiles/mac.nix
index f001f99..16e3b59 100644
--- a/users/profiles/mac.nix
+++ b/users/profiles/mac.nix
@@ -1,7 +1,6 @@
{ self, pkgs, ... }:
{
imports = [
- "${self}/users/programs/1password.nix"
"${self}/users/programs/alacritty"
"${self}/users/programs/bat.nix"
"${self}/users/programs/direnv.nix"
@@ -12,6 +11,7 @@
"${self}/users/programs/gh.nix"
"${self}/users/programs/git.nix"
"${self}/users/programs/go.nix"
+ "${self}/users/programs/onepassword.nix"
"${self}/users/programs/ssh.nix"
"${self}/users/programs/starship.nix"
"${self}/users/programs/tmux.nix"
diff --git a/users/profiles/work.nix b/users/profiles/work.nix
index feb5a46..538b547 100644
--- a/users/profiles/work.nix
+++ b/users/profiles/work.nix
@@ -2,6 +2,7 @@
lib,
self,
pkgs,
+ config,
...
}:
let
@@ -42,6 +43,16 @@ in
vault
];
+ programs.onepassword = lib.mkMerge [
+ config.programs.onepassword.sshKeys
+ [
+ {
+ account = "roblox.1password.com";
+ vault = "Private";
+ }
+ ]
+ ];
+
programs.fish = {
shellAbbrs =
let