Compare commits

..

No commits in common. "65fd07bbec766e089da94c8d91643d9e4fdf7f3b" and "85520706655be6ab0be73245646d8299afb9cd91" have entirely different histories.

5 changed files with 7 additions and 31 deletions

View file

@ -33,19 +33,6 @@
zellij.enable = true;
zsh.enable = true;
};
desktop.sway = {
enable = true;
kanshi = true;
swaylock.useNullPackage = true;
waybar = {
laptop = true;
gpuThermal.enable = false;
cpuThermal = {
hwmonPathAbs = "/sys/devices/platform/coretemp.0/hwmon/";
inputFilename = "temp1_input";
};
};
};
web.firefox = {
enable = true;
optionalExtensions = with pkgs.nur.repos.rycee.firefox-addons; [

View file

@ -13,16 +13,6 @@ in
description = "configure laptop mode";
};
swaylock.useNullPackage = mkOption {
type = types.bool;
default = false;
description = ''
Use null package to not install swaylock with Nix
Useful when using Home-Manager on third-party distribution to avoid
problem with PAM
'';
};
wallpapers = {
lockscreen = mkOption {
type = types.str;
@ -124,7 +114,7 @@ in
};
iconTheme = {
name = "Papirus Dark";
package = pkgs.papirus-icon-theme;
package = pkgs.papirus-icon-theme;
};
font = {
name = "Deja Vu Sans";

View file

@ -76,7 +76,7 @@ in
"${mod}+Alt+k" = "kill";
"${mod}+Alt+c" = "reload";
"${mod}+Alt+Backspace" = "exec swaynag -t warning -m 'Exit sway?' -B 'Yes' 'swaymsg exit'";
"${mod}+Alt+l" = if cfg.swaylock.useNullPackage then "exec swaylock" else "exec ${pkgs.swaylock}/bin/swaylock";
"${mod}+Alt+l" = "exec ${pkgs.swaylock}/bin/swaylock";
# Manage windows placement
"${mod}+b" = "splith";
"${mod}+v" = "splitv";

View file

@ -21,11 +21,11 @@ in
events = [
{
event = "before-sleep";
command = if cfg.swaylock.useNullPackage then "swaylock" else "${pkgs.swaylock}/bin/swaylock";
command = "${pkgs.swaylock}/bin/swaylock -f";
}
{
event = "lock";
command = if cfg.swaylock.useNullPackage then "swaylock" else "${pkgs.swaylock}/bin/swaylock";
command = "${pkgs.swaylock}/bin/swaylock -f";
}
];
};

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.sway;
@ -6,10 +6,9 @@ in
{
config = mkIf config.modules.desktop.sway.enable {
programs.swaylock = {
package = if cfg.swaylock.useNullPackage then null else pkgs.swaylock;
enable = true;
settings = {
image = if cfg.wallpapers.lockscreen != "" then "${cfg.wallpapers.lockscreen}" else false;
image = "${cfg.wallpapers.lockscreen}";
scaling = "center";
color = "000000";
indicator-radius = 70;
@ -23,7 +22,7 @@ in
ring-wrong-color = "f268b3";
inside-wrong-color = "f268b3cc";
key-hl-color = "1cd180";
caps-lock-key-hl-color = "1cd180";
caps-lock-key-hl-color = "1cd180";
caps-lock-bs-hl-color = "f268b3";
bs-hl-color = "f268b3ff";
separator-color = "00000000";