wip(home): refactor home modules *WILL NOT BUILD*
This commit is contained in:
parent
2033810429
commit
6a591ecbf7
115 changed files with 1028 additions and 791 deletions
|
|
@ -1,21 +1,7 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
#./gtkLock --- still needs to be implemented
|
||||
./swaylock
|
||||
./hyprlock
|
||||
./swaylock.nix
|
||||
./hyprlock.nix
|
||||
];
|
||||
|
||||
options.ooknet.desktop.wayland.lockscreen = {
|
||||
swaylock = {
|
||||
enable = lib.mkEnableOption "Enable Swaylock screen";
|
||||
};
|
||||
hyprlock = {
|
||||
enable = lib.mkEnableOption "Enable hyprlock screen";
|
||||
};
|
||||
};
|
||||
|
||||
#TODO: make assertion to prevent 2 lockscreens
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,15 @@
|
|||
{ lib, config, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ooknet.desktop.wayland.lockscreen.hyprlock;
|
||||
fonts = config.ooknet.theme.fonts;
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (lib) mkIf;
|
||||
wayland = config.ooknet.wayland;
|
||||
fonts = config.ooknet.fonts;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
# inputs.hyprlock.homeManagerModules.default
|
||||
# inputs.hypridle.homeManagerModules.default
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.sessionVariables.LOCKER = "hyprlock";
|
||||
config = mkIf (wayland.locker == "hyprlock") {
|
||||
ooknet.binds.locker = "hyprlock";
|
||||
programs.hyprlock = {
|
||||
settings = {
|
||||
enable = true;
|
||||
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
let
|
||||
inherit (config.colorscheme) palette;
|
||||
fonts = config.ooknet.theme.fonts;
|
||||
wallpaperPath = config.ooknet.theme.wallpaper.path;
|
||||
cfg = config.ooknet.desktop.wayland.lockscreen.swaylock;
|
||||
inherit (lib) mkIf;
|
||||
fonts = config.ooknet.fonts;
|
||||
wallpaperPath = config.ooknet.wallpaper.path;
|
||||
wayland = config.ooknet.wayland;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.sessionVariables.LOCKER = "swaylock";
|
||||
config = mkIf (wayland.locker == "swaylock") {
|
||||
ooknet.binds.locker = "swaylock";
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
Loading…
Add table
Add a link
Reference in a new issue