refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
parent
8f67be9e68
commit
5603001d65
230 changed files with 380 additions and 717 deletions
21
inputs/home/modules/desktop/wayland/lockscreen/default.nix
Normal file
21
inputs/home/modules/desktop/wayland/lockscreen/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
#./gtkLock --- still needs to be implemented
|
||||
./swaylock
|
||||
./hyprlock
|
||||
];
|
||||
|
||||
options.homeModules.desktop.wayland.lockscreen = {
|
||||
swaylock = {
|
||||
enable = lib.mkEnableOption "Enable Swaylock screen";
|
||||
};
|
||||
hyprlock = {
|
||||
enable = lib.mkEnableOption "Enable hyprlock screen";
|
||||
};
|
||||
};
|
||||
|
||||
#TODO: make assertion to prevent 2 lockscreens
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
{ lib, config, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.desktop.wayland.lockscreen.hyprlock;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
inherit (config.colorscheme) colors;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.hyprlock.homeManagerModules.default
|
||||
# inputs.hypridle.homeManagerModules.default
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.sessionVariables.LOCKER = "hyprlock";
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
no_fade_in = true;
|
||||
};
|
||||
backgrounds = [
|
||||
{
|
||||
monitor = "";
|
||||
path = "";
|
||||
color = "0xff${colors.base01}";
|
||||
}
|
||||
];
|
||||
input-fields = [
|
||||
{
|
||||
size = {
|
||||
width = 300;
|
||||
height = 40;
|
||||
};
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
outline_thickness = 2;
|
||||
dots_spacing = 0.2;
|
||||
fade_on_empty = false;
|
||||
placeholder_text = "";
|
||||
outer_color = "0xff${colors.base02}";
|
||||
inner_color = "0xff${colors.base00}";
|
||||
font_color = "0xff${colors.base05}";
|
||||
}
|
||||
];
|
||||
labels = [
|
||||
{
|
||||
monitor = "";
|
||||
text = " ";
|
||||
position = {
|
||||
x = 0;
|
||||
y = 80;
|
||||
};
|
||||
color = "0xff${colors.base08}";
|
||||
font_size = 30;
|
||||
font_family = "${fonts.monospace.family}";
|
||||
}
|
||||
{
|
||||
monitor = "";
|
||||
text = "$TIME";
|
||||
position = {
|
||||
x = 0;
|
||||
y = -80;
|
||||
};
|
||||
color = "0xff${colors.base0B}";
|
||||
font_size = 20;
|
||||
font_family = "${fonts.monospace.family}";
|
||||
}
|
||||
];
|
||||
};
|
||||
# services.hypridle = {
|
||||
# enable = true;
|
||||
# package = pkgs.hypridle;
|
||||
# beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
# lockCmd = lib.getExe config.programs.hyprlock.package;
|
||||
|
||||
# listeners = [
|
||||
# {
|
||||
# timeout = 500;
|
||||
# onTimeout = lib.getExe config.programs.hyprlock.package;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (config.colorscheme) colors;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
wallpaperPath = config.homeModules.theme.wallpaper.path;
|
||||
cfg = config.homeModules.desktop.wayland.lockscreen.swaylock;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.sessionVariables.LOCKER = "swaylock";
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
image = "${wallpaperPath}";
|
||||
font = fonts.monospace.family;
|
||||
color = "#${colors.base01}";
|
||||
ring-color = "#${colors.base02}";
|
||||
inside-wrong-color = "#${colors.base08}";
|
||||
ring-wrong-color = "#${colors.base08}";
|
||||
key-hl-color = "#${colors.base0B}";
|
||||
bs-hl-color = "#${colors.base08}";
|
||||
ring-ver-color = "#${colors.base09}";
|
||||
inside-ver-color = "#${colors.base09}";
|
||||
inside-color = "#${colors.base01}";
|
||||
text-color = "#${colors.base07}";
|
||||
text-clear-color = "#${colors.base01}";
|
||||
text-ver-color = "#${colors.base01}";
|
||||
text-wrong-color = "#${colors.base01}";
|
||||
text-caps-lock-color = "#${colors.base07}";
|
||||
inside-clear-color = "#${colors.base0C}";
|
||||
ring-clear-color = "#${colors.base0C}";
|
||||
inside-caps-lock-color = "#${colors.base09}";
|
||||
ring-caps-lock-color = "#${colors.base02}";
|
||||
separator-color = "#${colors.base02}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue