First working version of NixOS intall

This commit is contained in:
Yorick Barbanneau 2023-07-23 01:18:29 +02:00
commit 5ab67429b2
47 changed files with 1801 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ pkgs, ... }:
{
services.swayidle = {
enable = true;
timeouts = [
{
timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock -f";
}
{
timeout = 600;
command = "swaymsg 'output * dpms off'";
resumeCommand = "swaymsg 'output * dpms on";
}
];
events = [
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -f";
}
{
event = "lock";
command = "${pkgs.swaylock}/bin/swaylock -f";
}
];
};
}