mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 00:31:54 -05:00
Revert "desktop: swaylock -> gtklock (#89)"
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This reverts commit 62f2d5b1d0
.
This commit is contained in:
parent
62f2d5b1d0
commit
c0597a357a
|
@ -7,7 +7,6 @@
|
||||||
./fastfetch
|
./fastfetch
|
||||||
./firefox
|
./firefox
|
||||||
./fuzzel
|
./fuzzel
|
||||||
./gtklock
|
|
||||||
./helix
|
./helix
|
||||||
./keepassxc
|
./keepassxc
|
||||||
./kitty
|
./kitty
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.ar.home;
|
|
||||||
in {
|
|
||||||
config = lib.mkIf cfg.apps.gtklock.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
gtklock
|
|
||||||
];
|
|
||||||
|
|
||||||
xdg.configFile = {
|
|
||||||
"gtklock/config.ini".text = ''
|
|
||||||
[main]
|
|
||||||
gtk-theme=adw-gtk3-dark
|
|
||||||
time-format=%I:%M%p
|
|
||||||
'';
|
|
||||||
|
|
||||||
"gtklock/style.css".text = ''
|
|
||||||
window {
|
|
||||||
background-image: url("${cfg.theme.wallpaper}");
|
|
||||||
background-size: cover;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
background-color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock-label {
|
|
||||||
margin-bottom: 50px;
|
|
||||||
font-size: 700%;
|
|
||||||
font-weight: bold;
|
|
||||||
color: ${cfg.theme.colors.text};
|
|
||||||
}
|
|
||||||
|
|
||||||
#input-label {
|
|
||||||
color: ${cfg.theme.colors.text};
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
|
|
||||||
bind =
|
bind =
|
||||||
[
|
[
|
||||||
"$mod CTRL,L,exec,${lib.getExe pkgs.gtklock}"
|
"$mod CTRL,L,exec,${lib.getExe pkgs.swaylock}"
|
||||||
"$mod SHIFT,G,togglegroup"
|
"$mod SHIFT,G,togglegroup"
|
||||||
"$mod SHIFT,R,exec,${lib.getExe config.programs.rofi.package} -show run"
|
"$mod SHIFT,R,exec,${lib.getExe config.programs.rofi.package} -show run"
|
||||||
"$mod SHIFT,S,movetoworkspace,special:magic"
|
"$mod SHIFT,S,movetoworkspace,special:magic"
|
||||||
|
|
|
@ -95,7 +95,7 @@ in {
|
||||||
"${modifier}+B" = "exec ${lib.getExe cfg.defaultApps.webBrowser}";
|
"${modifier}+B" = "exec ${lib.getExe cfg.defaultApps.webBrowser}";
|
||||||
"${modifier}+C" = "kill";
|
"${modifier}+C" = "kill";
|
||||||
"${modifier}+Comma" = "workspace prev";
|
"${modifier}+Comma" = "workspace prev";
|
||||||
"${modifier}+Control+L" = "exec ${lib.getExe pkgs.gtklock}";
|
"${modifier}+Control+L" = "exec ${lib.getExe pkgs.swaylock}";
|
||||||
"${modifier}+E" = "exec ${lib.getExe cfg.defaultApps.editor}";
|
"${modifier}+E" = "exec ${lib.getExe cfg.defaultApps.editor}";
|
||||||
"${modifier}+F" = "exec ${lib.getExe cfg.defaultApps.fileManager}";
|
"${modifier}+F" = "exec ${lib.getExe cfg.defaultApps.fileManager}";
|
||||||
"${modifier}+F11" = "exec pkill -SIGUSR1 waybar"; # Show/hide waybar
|
"${modifier}+F11" = "exec pkill -SIGUSR1 waybar"; # Show/hide waybar
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
apps = {
|
apps = {
|
||||||
kitty.enable = lib.mkDefault true;
|
kitty.enable = lib.mkDefault true;
|
||||||
rofi.enable = lib.mkDefault true;
|
rofi.enable = lib.mkDefault true;
|
||||||
gtklock.enable = lib.mkDefault true;
|
swaylock.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -36,7 +36,6 @@ in {
|
||||||
fastfetch.enable = lib.mkEnableOption "Fastfetch.";
|
fastfetch.enable = lib.mkEnableOption "Fastfetch.";
|
||||||
firefox.enable = lib.mkEnableOption "Firefox web browser.";
|
firefox.enable = lib.mkEnableOption "Firefox web browser.";
|
||||||
fuzzel.enable = lib.mkEnableOption "Fuzzel app launcher.";
|
fuzzel.enable = lib.mkEnableOption "Fuzzel app launcher.";
|
||||||
gtklock.enable = lib.mkEnableOption "GTK lockscreen based on gtkgreet.";
|
|
||||||
helix.enable = lib.mkEnableOption "Helix text editor.";
|
helix.enable = lib.mkEnableOption "Helix text editor.";
|
||||||
|
|
||||||
keepassxc = {
|
keepassxc = {
|
||||||
|
|
|
@ -19,11 +19,11 @@ in {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
event = "before-sleep";
|
event = "before-sleep";
|
||||||
command = "${lib.getExe pkgs.gtklock} && ${lib.getExe' pkgs.coreutils "sleep"} 2";
|
command = "${lib.getExe pkgs.swaylock} && ${lib.getExe' pkgs.coreutils "sleep"} 2";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
event = "lock";
|
event = "lock";
|
||||||
command = "${lib.getExe pkgs.gtklock}";
|
command = "${lib.getExe pkgs.swaylock}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ in {
|
||||||
++ lib.optional (!cfg.desktop.autoSuspend)
|
++ lib.optional (!cfg.desktop.autoSuspend)
|
||||||
{
|
{
|
||||||
timeout = 600;
|
timeout = 600;
|
||||||
command = "${lib.getExe pkgs.gtklock}";
|
command = "${lib.getExe pkgs.swaylock}";
|
||||||
}
|
}
|
||||||
++ lib.optional (!cfg.desktop.autoSuspend && cfg.desktop.hyprland.enable)
|
++ lib.optional (!cfg.desktop.autoSuspend && cfg.desktop.hyprland.enable)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
config = lib.mkIf (config.ar.desktop.hyprland.enable || config.ar.desktop.sway.enable) {
|
config = lib.mkIf (config.ar.desktop.hyprland.enable || config.ar.desktop.sway.enable) {
|
||||||
programs.gnupg.agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
|
programs = {
|
||||||
|
gnupg.agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
dbus.packages = [pkgs.gcr];
|
dbus.packages = [pkgs.gcr];
|
||||||
|
@ -13,30 +15,29 @@
|
||||||
udev.packages = [pkgs.swayosd];
|
udev.packages = [pkgs.swayosd];
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services = let
|
security.pam.services = {
|
||||||
text = ''
|
swaylock = {
|
||||||
# Account management.
|
text = ''
|
||||||
account required pam_unix.so # unix (order 10900)
|
# Account management.
|
||||||
|
account required pam_unix.so # unix (order 10900)
|
||||||
|
|
||||||
# Authentication management.
|
# Authentication management.
|
||||||
auth sufficient pam_unix.so likeauth try_first_pass nullok # unix (order 11500)
|
auth sufficient pam_unix.so likeauth try_first_pass likeauth nullok # unix (order 11500)
|
||||||
${
|
${
|
||||||
lib.strings.optionalString config.services.fprintd.enable
|
lib.strings.optionalString config.services.fprintd.enable
|
||||||
"auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so # fprintd (order 11300)"
|
"auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so # fprintd (order 11300)"
|
||||||
}
|
}
|
||||||
|
|
||||||
auth required pam_deny.so # deny (order 12300)
|
auth required pam_deny.so # deny (order 12300)
|
||||||
|
|
||||||
# Password management.
|
# Password management.
|
||||||
password sufficient pam_unix.so nullok yescrypt # unix (order 10200)
|
password sufficient pam_unix.so nullok yescrypt # unix (order 10200)
|
||||||
|
|
||||||
# Session management.
|
# Session management.
|
||||||
session required pam_env.so conffile=/etc/pam/environment readenv=0 # env (order 10100)
|
session required pam_env.so conffile=/etc/pam/environment readenv=0 # env (order 10100)
|
||||||
session required pam_unix.so # unix (order 10200)
|
session required pam_unix.so # unix (order 10200)
|
||||||
'';
|
'';
|
||||||
in {
|
};
|
||||||
gtklock = {inherit text;};
|
|
||||||
swaylock = {inherit text;};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue