setup xss-lock and i3lock as lockscreen

This commit is contained in:
Andreas Zweili 2021-11-22 20:14:59 +01:00
parent 7e7be20baa
commit fb5e940be1
1 changed files with 12 additions and 2 deletions

View File

@ -74,10 +74,10 @@
]; ];
}; };
# List packages installed in system profile. To search, run:
# $ nix search wget
# allow non-free packages # allow non-free packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# enable garbage collection
nix.gc = { nix.gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "weekly";
@ -88,14 +88,23 @@
programs.steam.enable = true; programs.steam.enable = true;
hardware.steam-hardware.enable = true; hardware.steam-hardware.enable = true;
# enable lockscreen
programs.xss-lock = {
enable = true;
lockerCommand = "i3lock -c 000000";
};
environment.shellAliases = { environment.shellAliases = {
nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system"; nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
}; };
environment.variables = { environment.variables = {
EDITOR = "vim"; EDITOR = "vim";
HIGHLIGHT_STYLE = "solarized-light"; HIGHLIGHT_STYLE = "solarized-light";
ZWEILI_ENVIRONMENT = "desktop"; ZWEILI_ENVIRONMENT = "desktop";
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
arc-theme arc-theme
celluloid celluloid
@ -103,6 +112,7 @@
git git
highlight highlight
htop htop
i3lock
lxappearance lxappearance
ncdu ncdu
nitrogen nitrogen