Fix lockscreen

This commit is contained in:
Agatha Lovelace 2023-10-22 16:07:34 +02:00
parent c9a4e46f04
commit a9f551821f
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
3 changed files with 8 additions and 10 deletions

View File

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }: { pkgs, config, ... }:
let let
color = n: color = n:
config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString
@ -95,6 +95,7 @@ in {
foreground = color 15; foreground = color 15;
frame_color = color 3; frame_color = color 3;
fullscreen = "show";
timeout = 0; timeout = 0;
}; };
# Horrible hack to fix alphabetical sorting overriding this # Horrible hack to fix alphabetical sorting overriding this

View File

@ -3,6 +3,7 @@
# Lockscreen # Lockscreen
services.betterlockscreen = { services.betterlockscreen = {
enable = true; enable = true;
package = pkgs.unstable.betterlockscreen;
arguments = [ "dimblur" ]; arguments = [ "dimblur" ];
}; };
@ -17,14 +18,7 @@
# Send a notification 10 seconds before locking # Send a notification 10 seconds before locking
services.screen-locker.xautolock.extraOptions = [ services.screen-locker.xautolock.extraOptions = [
"-notify 10" "-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";
};
};
}; };
} }

View File

@ -95,7 +95,7 @@
network = { network = {
description = "Agatha's Nix Infra"; description = "Agatha's Nix Infra";
nixpkgs = import nixpkgs { nixpkgs = import nixpkgs rec {
system = "x86_64-linux"; system = "x86_64-linux";
overlays = [ overlays = [
(final: prev: { (final: prev: {
@ -114,6 +114,9 @@
spicetify-pkgs = spicetify-nix.packages.${final.system}.default; spicetify-pkgs = spicetify-nix.packages.${final.system}.default;
matrix-ril100 = matrix-ril100.packages.${final.system}.default; matrix-ril100 = matrix-ril100.packages.${final.system}.default;
ccase = ccase.packages.${final.system}.default; ccase = ccase.packages.${final.system}.default;
# Unstable packages
unstable = import nixpkgs-unstable { inherit system; };
}) })
colmena.overlay colmena.overlay
]; ];