Fix lockscreen
This commit is contained in:
parent
c9a4e46f04
commit
a9f551821f
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
color = n:
|
||||
config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString
|
||||
|
@ -95,6 +95,7 @@ in {
|
|||
foreground = color 15;
|
||||
frame_color = color 3;
|
||||
|
||||
fullscreen = "show";
|
||||
timeout = 0;
|
||||
};
|
||||
# Horrible hack to fix alphabetical sorting overriding this
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# Lockscreen
|
||||
services.betterlockscreen = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.betterlockscreen;
|
||||
arguments = [ "dimblur" ];
|
||||
};
|
||||
|
||||
|
@ -17,14 +18,7 @@
|
|||
# Send a notification 10 seconds before locking
|
||||
services.screen-locker.xautolock.extraOptions = [
|
||||
"-notify 10"
|
||||
"-notifier '${pkgs.xscreensaver}/bin/xscreensaver-command --activate'"
|
||||
"-notifier '${pkgs.dunst}/bin/dunstify -t 10000 -u 2 \"Screen will lock in 10 seconds\"'"
|
||||
];
|
||||
services.xscreensaver = {
|
||||
enable = true;
|
||||
settings = {
|
||||
dpmsEnabled = "False";
|
||||
mode = "off";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
network = {
|
||||
description = "Agatha's Nix Infra";
|
||||
|
||||
nixpkgs = import nixpkgs {
|
||||
nixpkgs = import nixpkgs rec {
|
||||
system = "x86_64-linux";
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
|
@ -114,6 +114,9 @@
|
|||
spicetify-pkgs = spicetify-nix.packages.${final.system}.default;
|
||||
matrix-ril100 = matrix-ril100.packages.${final.system}.default;
|
||||
ccase = ccase.packages.${final.system}.default;
|
||||
|
||||
# Unstable packages
|
||||
unstable = import nixpkgs-unstable { inherit system; };
|
||||
})
|
||||
colmena.overlay
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue