Updated swaylock config

This commit is contained in:
Tyler Mayoff 2025-03-15 20:38:43 -04:00
parent 04dd9d8c07
commit 4cb48ad092
2 changed files with 29 additions and 22 deletions

View file

@ -47,18 +47,18 @@ in {
]; ];
timeouts = [ timeouts = [
{ {
timeout = 300; timeout = 600;
command = "${lib.getExe pkgs.swaylock-effects} -f"; command = "${lib.getExe pkgs.swaylock-effects} -f";
} }
{ {
timeout = 305; timeout = 605;
command = ''${pkgs.sway}/bin/swaymsg "output * dpms off"''; command = ''${pkgs.sway}/bin/swaymsg "output * dpms off"'';
resumeCommand = ''${pkgs.sway}/bin/swaymsg "output * dpms on"''; resumeCommand = ''${pkgs.sway}/bin/swaymsg "output * dpms on"'';
} }
{ # {
timeout = 600; # timeout = 600;
command = ''systemctl suspend''; # command = ''systemctl suspend'';
} # }
{ {
timeout = 1200; timeout = 1200;
command = ''systemctl hibernate''; command = ''systemctl hibernate'';

View file

@ -1,6 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ {
outputs, outputs,
pkgs, pkgs,
@ -21,6 +18,9 @@
config = { config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [
"fluffychat-linux-1.23.0"
];
}; };
}; };
@ -62,26 +62,27 @@
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_CA.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8"; LC_ADDRESS = "en_CA.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8"; LC_IDENTIFICATION = "en_CA.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8"; LC_MEASUREMENT = "en_CA.UTF-8";
LC_MONETARY = "en_US.UTF-8"; LC_MONETARY = "en_CA.UTF-8";
LC_NAME = "en_US.UTF-8"; LC_NAME = "en_CA.UTF-8";
LC_NUMERIC = "en_US.UTF-8"; LC_NUMERIC = "en_CA.UTF-8";
LC_PAPER = "en_US.UTF-8"; LC_PAPER = "en_CA.UTF-8";
LC_TELEPHONE = "en_US.UTF-8"; LC_TELEPHONE = "en_CA.UTF-8";
LC_TIME = "en_US.UTF-8"; LC_TIME = "en_CA.UTF-8";
LC_ALL = "en_CA.UTF-8";
}; };
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; # services.xserver.enable = true;
# Enable the GNOME Desktop Environment. # Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
# services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11 # Configure keymap in X11
services.xserver.xkb = { services.xserver.xkb = {
@ -137,10 +138,11 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# unstable.bitwarden-desktop unstable.bitwarden-desktop
sqlite sqlite
vscode.fhs vscode.fhs
lm_sensors lm_sensors
nautilus
pre-commit pre-commit
]; ];
@ -155,6 +157,11 @@
programs.firefox.enable = true; programs.firefox.enable = true;
programs.fish.enable = true; programs.fish.enable = true;
# programs.niri = {
# enable = true;
# package = pkgs.unstable.niri-unstable;
# };
# Sway # Sway
programs.sway = { programs.sway = {
enable = true; enable = true;