1Password. Still need to setup PAM stuff
This commit is contained in:
parent
52c49bc422
commit
34741268a3
23
modules/applications/1password.nix
Normal file
23
modules/applications/1password.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.this.application.onepassword;
|
||||
graphical = config.this.graphical;
|
||||
enable = (cfg.gui.enable || cfg.cli.enable);
|
||||
in with lib; {
|
||||
options = {
|
||||
this.application.onepassword.gui.enable = mkOption {
|
||||
default = graphical.enable;
|
||||
type = with types; bool;
|
||||
};
|
||||
this.application.onepassword.cli.enable = mkOption {
|
||||
default = (graphical.enable || cfg.gui.enable);
|
||||
type = with types; bool;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.gui.enable || cfg.cli.enable) {
|
||||
home-manager.users.james = {
|
||||
home.packages = with pkgs; [ _1password _1password-gui ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{ config, pkgs, ... }: {
|
||||
imports = [
|
||||
./1password.nix
|
||||
./emacs.nix
|
||||
./firefox.nix
|
||||
./gnome-common.nix
|
||||
|
|
Reference in New Issue
Block a user