big refactoring
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.betterlockscreen = {
|
||||
enable = true;
|
||||
arguments = [ "blur" ];
|
||||
inactiveInterval = 30;
|
||||
};
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./default.nix ./betterlockscreen ];
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./ssh-agent ./gpg-agent ./hypridle.nix ];
|
||||
|
||||
@@ -1,19 +1,9 @@
|
||||
{ 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 pinentry-gnome3 ];
|
||||
|
||||
programs.gpg.enable = true;
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-gnome3;
|
||||
@@ -23,7 +13,6 @@ in {
|
||||
extraConfig = ''
|
||||
ttyname $GPG_TTY
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,22 +1,20 @@
|
||||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd =
|
||||
"/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
|
||||
lock_cmd = "/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
|
||||
before_sleep_cmd = "/run/current-system/sw/bin/loginctl lock-session";
|
||||
};
|
||||
listener = [
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 600;
|
||||
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
}
|
||||
];
|
||||
listener = [{
|
||||
timeout = 300;
|
||||
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
|
||||
}{
|
||||
timeout = 600;
|
||||
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
6
home/services/ssh-agent.nix
Normal file
6
home/services/ssh-agent.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.ssh-agent.enable = true;
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.ssh-agent = { enable = true; };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user