wip(home): refactor home modules *WILL NOT BUILD*

This commit is contained in:
ooks-io 2024-06-04 21:19:35 +12:00
parent 2033810429
commit 6a591ecbf7
115 changed files with 1028 additions and 791 deletions

View file

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

View file

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

View file

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