feat: Added auth.nix
This commit is contained in:
17
common/auth.nix
Normal file
17
common/auth.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# import the home-manager module
|
||||
imports = [inputs._1password-shell-plugins.hmModules.default];
|
||||
programs = {
|
||||
_1password-shell-plugins = {
|
||||
# enable 1Password shell plugins for bash, zsh, and fish shell
|
||||
enable = true;
|
||||
# the specified packages as well as 1Password CLI will be
|
||||
# automatically installed and configured to use shell plugins
|
||||
plugins = with pkgs; [awscli2 cachix];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -8,10 +8,10 @@
|
||||
lib.attrsets.optionalAttrs device.hasGui {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
_1password
|
||||
# neovide
|
||||
]
|
||||
++ lib.optionals device.isLinux [
|
||||
_1password
|
||||
_1password-gui
|
||||
bitwarden
|
||||
discord
|
||||
@@ -41,15 +41,4 @@ lib.attrsets.optionalAttrs device.hasGui {
|
||||
wl-clipboard
|
||||
|
||||
];
|
||||
# import the home-manager module
|
||||
imports = [inputs._1password-shell-plugins.hmModules.default];
|
||||
programs = {
|
||||
_1password-shell-plugins = {
|
||||
# enable 1Password shell plugins for bash, zsh, and fish shell
|
||||
enable = true;
|
||||
# the specified packages as well as 1Password CLI will be
|
||||
# automatically installed and configured to use shell plugins
|
||||
plugins = with pkgs; [gh awscli2 cachix];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ in {
|
||||
./kitty.nix
|
||||
./gui.nix
|
||||
|
||||
./auth.nix
|
||||
./tmux.nix
|
||||
./nvim.nix
|
||||
./goread.nix
|
||||
@@ -78,7 +79,7 @@ in {
|
||||
|
||||
# Misc
|
||||
qmk
|
||||
bitwarden-cli
|
||||
# bitwarden-cli
|
||||
p7zip
|
||||
yt-dlp
|
||||
spotdl
|
||||
|
||||
Reference in New Issue
Block a user