onepassword module
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
self.modules.nixos.base
|
self.modules.nixos.base
|
||||||
self.modules.nixos.p14sHardware
|
self.modules.nixos.p14sHardware
|
||||||
|
self.modules.nixos.onepassword
|
||||||
];
|
];
|
||||||
|
|
||||||
rebuild.flakeDir = flakeDir;
|
rebuild.flakeDir = flakeDir;
|
||||||
@@ -32,15 +33,6 @@
|
|||||||
security.pam.services.swaylock = {};
|
security.pam.services.swaylock = {};
|
||||||
security.pam.services.swaylock.fprintAuth = true;
|
security.pam.services.swaylock.fprintAuth = true;
|
||||||
|
|
||||||
programs._1password.enable = true;
|
|
||||||
programs._1password-gui = {
|
|
||||||
enable = true;
|
|
||||||
# Certain features, including CLI integration and system authentication support,
|
|
||||||
# require enabling PolKit integration on some desktop environments (e.g. Plasma).
|
|
||||||
polkitPolicyOwners = [ "john" ];
|
|
||||||
# TODO this should not be a hardcoded username
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It's perfectly fine and recommended to leave
|
# on your system were taken. It's perfectly fine and recommended to leave
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
self.modules.nixos.base
|
self.modules.nixos.base
|
||||||
self.modules.nixos.greetd
|
self.modules.nixos.greetd
|
||||||
self.modules.nixos.niri
|
self.modules.nixos.niri
|
||||||
|
self.modules.nixos.onepassword
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
@@ -112,6 +113,9 @@
|
|||||||
home-manager.users.john.imports = with inputs.self.modules.homeManager; [
|
home-manager.users.john.imports = with inputs.self.modules.homeManager; [
|
||||||
desktop
|
desktop
|
||||||
# rebuild
|
# rebuild
|
||||||
|
{
|
||||||
|
my-vscode.enable = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,15 @@
|
|||||||
{ self, inputs, ... }: {
|
{ self, inputs, ... }: {
|
||||||
|
flake.modules.nixos.onepassword = { config, ... }: {
|
||||||
|
programs._1password.enable = true;
|
||||||
|
programs._1password-gui = {
|
||||||
|
enable = true;
|
||||||
|
# Certain features, including CLI integration and system authentication support,
|
||||||
|
# require enabling PolKit integration on some desktop environments (e.g. Plasma).
|
||||||
|
polkitPolicyOwners = [ "john" ];
|
||||||
|
# TODO this should not be a hardcoded username
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.onepassword = { config, ... }: {
|
flake.modules.homeManager.onepassword = { config, ... }: {
|
||||||
home.file.".config/1Password/ssh/agent.toml".text = ''
|
home.file.".config/1Password/ssh/agent.toml".text = ''
|
||||||
# https://developer.1password.com/docs/ssh/agent/config
|
# https://developer.1password.com/docs/ssh/agent/config
|
||||||
|
|||||||
Reference in New Issue
Block a user