rebuild
This commit is contained in:
8
home/services/betterlockscreen/default.nix
Normal file
8
home/services/betterlockscreen/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.betterlockscreen = {
|
||||
enable = true;
|
||||
arguments = [ "blur" ];
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./ssh-agent.nix ./gpg-agent.nix ./xscreenlocker.nix ];
|
||||
imports = [ ./ssh-agent ./gpg-agent ./betterlockscreen ];
|
||||
}
|
||||
|
||||
28
home/services/gpg-agent/default.nix
Normal file
28
home/services/gpg-agent/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
# See https://github.com/nix-community/home-manager/issues/3095
|
||||
let
|
||||
pinentryRofi = pkgs.writeShellApplication {
|
||||
name = "pinentry-rofi-with-env";
|
||||
text = ''
|
||||
PATH="$PATH:${pkgs.coreutils}/bin:${pkgs.rofi}/bin"
|
||||
"${pkgs.pinentry-rofi}/bin/pinentry-rofi" "$@"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
home.packages = with pkgs; [ pinentry-rofi ];
|
||||
|
||||
programs.gpg.enable = true;
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
pinentryFlavor = null;
|
||||
defaultCacheTtl = 7200; # 2h
|
||||
maxCacheTtl = 28800; # 8h
|
||||
extraConfig = ''
|
||||
pinentry-program ${pinentryRofi}/bin/pinentry-rofi-with-env
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let images = pkgs.callPackage ../extras/images.nix { };
|
||||
in {
|
||||
home.packages = with pkgs; [ xsecurelock ];
|
||||
|
||||
home.sessionVariables = rec {
|
||||
XSECURELOCK_COMPOSITE_OBSCURER = 0;
|
||||
XSECURELOCK_PASSWORD_PROMPT = "asterisks";
|
||||
};
|
||||
|
||||
services.screen-locker = {
|
||||
enable = true;
|
||||
inactiveInterval = 1;
|
||||
lockCmd = "${pkgs.xsecurelock}/bin/xsecurelock";
|
||||
xautolock.extraOptions = [ "Xautolock.killer: systemctl suspend" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user