Chore: alejandra
This commit is contained in:
parent
bba1ac685f
commit
5596cdc23a
5 changed files with 30 additions and 40 deletions
|
|
@ -43,10 +43,9 @@
|
|||
# Launcher
|
||||
"bind = $mainMod, D, exec, $menu"
|
||||
|
||||
# lock
|
||||
# lock
|
||||
"bind = $mainMod, L, exec, hyprlock"
|
||||
|
||||
|
||||
# Workspaces
|
||||
"bind = $mainMod, 1, workspace, 1"
|
||||
"bind = $mainMod, 2, workspace, 2"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,5 @@
|
|||
imports = [
|
||||
# Main entry:
|
||||
./main.nix
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
{ config, lib, nixosVista, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
nixosVista,
|
||||
...
|
||||
}: let
|
||||
root = nixosVista;
|
||||
cfg = root.hyprlock;
|
||||
|
||||
hyprlockConfig = ''
|
||||
|
||||
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
grace = 0;
|
||||
|
|
@ -82,12 +85,11 @@ let
|
|||
}
|
||||
];
|
||||
'';
|
||||
in
|
||||
{
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
extraConfig = hyprlockConfig + "\n" + cfg.extraConfig;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -254,30 +254,23 @@ with lib; {
|
|||
};
|
||||
};
|
||||
|
||||
############################################################
|
||||
# Lock screen (Hyprlock)
|
||||
############################################################
|
||||
|
||||
hyprlock = {
|
||||
enable = mkEnableOption "Enable Hyprlock lock screen";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
############################################################
|
||||
# Lock screen (Hyprlock)
|
||||
############################################################
|
||||
|
||||
hyprlock = {
|
||||
enable = mkEnableOption "Enable Hyprlock lock screen";
|
||||
|
||||
# Future-proof: allow raw config injection
|
||||
extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
Extra Hyprlock configuration appended to the generated config.
|
||||
Useful for custom labels, blur tweaks, etc.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# Future-proof: allow raw config injection
|
||||
extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
Extra Hyprlock configuration appended to the generated config.
|
||||
Useful for custom labels, blur tweaks, etc.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
waybar = {
|
||||
enable = mkOption {
|
||||
|
|
|
|||
|
|
@ -3,12 +3,9 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
noto-fonts
|
||||
];
|
||||
|
||||
}: {
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
noto-fonts
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue