flake-parts: Almost done with yggdrasil
This commit is contained in:
parent
d579c8ad2c
commit
ebc8a545c8
43 changed files with 2650 additions and 135 deletions
30
modules/apps/1password.nix
Normal file
30
modules/apps/1password.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
topLevel: {
|
||||
flake.modules = {
|
||||
nixos._1password =
|
||||
{ ... }:
|
||||
{
|
||||
programs = {
|
||||
_1password.enable = true;
|
||||
_1password-gui = {
|
||||
enable = true;
|
||||
polkitPolicyOwners = [ topLevel.config.flake.meta.users.cholli.username ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
homeManager.cholli =
|
||||
{ lib, osConfig, ... }:
|
||||
{
|
||||
home.file = lib.mkIf osConfig.programs._1password.enable {
|
||||
".ssh/config".text = ''
|
||||
Host *
|
||||
ForwardAgent yes
|
||||
IdentityAgent /home/cholli/.1password/agent.sock
|
||||
|
||||
Host loptland
|
||||
Hostname christophhollizeck.dev
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue