Chore: alejandra

This commit is contained in:
Peritia 2026-03-02 15:48:09 +01:00
parent bba1ac685f
commit 5596cdc23a
5 changed files with 30 additions and 40 deletions

View file

@ -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"

View file

@ -2,6 +2,5 @@
imports = [
# Main entry:
./main.nix
];
}

View file

@ -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;
};
};
}
}

View file

@ -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 {

View file

@ -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
];
}