mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-28 10:04:20 -05:00
home: remove trusted, make pass and sign global
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
features = [
|
||||
"desktop/hyprland"
|
||||
"desktop/sway"
|
||||
"trusted"
|
||||
"email"
|
||||
"rgb"
|
||||
"games"
|
||||
];
|
||||
@@ -128,7 +128,7 @@
|
||||
|
||||
features = [
|
||||
"desktop/hyprland"
|
||||
"trusted"
|
||||
"email"
|
||||
"laptop"
|
||||
"games"
|
||||
];
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
./gpg.nix
|
||||
./nix-index.nix
|
||||
./nvim
|
||||
./pass.nix
|
||||
./pfetch.nix
|
||||
./ranger.nix
|
||||
./screen.nix
|
||||
|
||||
@@ -14,5 +14,9 @@
|
||||
};
|
||||
lfs = { enable = true; };
|
||||
ignores = [ ".direnv" "result" ];
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "CE707A2C17FAAC97907FF8EF2E54EA7BFE630916";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ in
|
||||
};
|
||||
|
||||
home.persistence = lib.mkIf persistence {
|
||||
"/persist/home/misterio".directories = [ ".gnupg/private-keys-v1.d" ];
|
||||
"/persist/home/misterio".directories = [ ".gnupg" ];
|
||||
};
|
||||
|
||||
programs.gpg = {
|
||||
|
||||
@@ -189,12 +189,11 @@ in
|
||||
"unread" = "";
|
||||
};
|
||||
};
|
||||
"custom/gpg-agent" = lib.mkIf config.programs.password-store.enable {
|
||||
"custom/gpg-agent" = {
|
||||
interval = 2;
|
||||
return-type = "json";
|
||||
exec =
|
||||
let
|
||||
keyring = import ../../../trusted/keyring.nix { inherit pkgs; };
|
||||
let keyring = import ../../../keyring.nix { inherit pkgs; };
|
||||
in
|
||||
jsonOutput {
|
||||
pre = ''status=$(${keyring.isUnlocked} && echo "unlocked" || echo "locked")'';
|
||||
|
||||
@@ -3,19 +3,19 @@ let
|
||||
pass-wofi = pkgs.pass-wofi.override {
|
||||
pass = config.programs.password-store.package;
|
||||
};
|
||||
hasPass = config.programs.password-store.enable;
|
||||
in
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
wofi
|
||||
] ++ (lib.optional hasPass pass-wofi);
|
||||
pass-wofi
|
||||
];
|
||||
|
||||
preferredApps.menu = {
|
||||
run-cmd = "wofi -S run";
|
||||
drun-cmd = "wofi -S drun -x 10 -y 10 -W 25% -H 60%";
|
||||
dmenu-cmd = "wofi -S dmenu";
|
||||
password-cmd = lib.mkIf hasPass "pass-wofi";
|
||||
password-cmd = "pass-wofi";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -95,10 +95,8 @@
|
||||
|
||||
bind=SUPER,x,exec,${menu.drun-cmd}
|
||||
bind=SUPER,d,exec,${menu.run-cmd}
|
||||
${lib.optionalString config.programs.password-store.enable ''
|
||||
bind=,Scroll_Lock,exec,${menu.password-cmd} # fn+k
|
||||
bind=,XF86Calculator,exec,${menu.password-cmd} # fn+f12
|
||||
''}
|
||||
bind=,Scroll_Lock,exec,${menu.password-cmd} # fn+k
|
||||
bind=,XF86Calculator,exec,${menu.password-cmd} # fn+f12
|
||||
|
||||
# Toggle waybar
|
||||
bind=,XF86Tools,exec,${pkgs.procps}/bin/pkill -USR1 waybar # profile button
|
||||
|
||||
@@ -205,14 +205,13 @@
|
||||
# Application menu
|
||||
"${modifier}+x" = "exec ${menu.drun-cmd}";
|
||||
|
||||
# Full screen across monitors
|
||||
"${modifier}+shift+f" = "fullscreen toggle global";
|
||||
} // (lib.optionalAttrs config.programs.password-store.enable
|
||||
{
|
||||
# Pass menu
|
||||
"Scroll_Lock" = "exec ${menu.password-cmd}"; # fn+k
|
||||
"XF86Calculator" = "exec ${menu.password-cmd}"; # fn+f12
|
||||
});
|
||||
|
||||
# Full screen across monitors
|
||||
"${modifier}+shift+f" = "fullscreen toggle global";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
{
|
||||
imports = [
|
||||
./git-sign.nix
|
||||
./khal.nix
|
||||
./khard.nix
|
||||
./mail.nix
|
||||
./neomutt.nix
|
||||
./pass.nix
|
||||
./todoman.nix
|
||||
./vdirsyncer.nix
|
||||
];
|
||||
@@ -65,7 +65,7 @@ in {
|
||||
programs.msmtp.enable = true;
|
||||
systemd.user.services.mbsync = {
|
||||
Unit = { Description = "mbsync synchronization"; };
|
||||
Service = let keyring = import ./keyring.nix { inherit pkgs; };
|
||||
Service = let keyring = import ../keyring.nix { inherit pkgs; };
|
||||
in {
|
||||
Type = "oneshot";
|
||||
ExecCondition = ''
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
systemd.user.services.vdirsyncer = {
|
||||
Unit = { Description = "vdirsyncer synchronization"; };
|
||||
Service = let keyring = import ./keyring.nix { inherit pkgs; };
|
||||
Service = let keyring = import ../keyring.nix { inherit pkgs; };
|
||||
in {
|
||||
Type = "oneshot";
|
||||
ExecCondition = ''
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
programs.git = {
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "CE707A2C17FAAC97907FF8EF2E54EA7BFE630916";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user