Skip to content

Commit

Permalink
chore: cleanup modules
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Feb 21, 2024
1 parent ed5f0db commit fdfc3e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions flake/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ in {
homeManagerModules = {
gtklock = mkModule /modules/extra/home-manager/gtklock.nix;

hyfetch = mkModule /modules/extra/home-manager/hyfetch.nix;

swaync = mkModule /modules/extra/home-manager/swaync.nix;

default = builtins.throw "There is no default module.";
Expand Down
5 changes: 0 additions & 5 deletions home/isabel/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{
lib,
pkgs,
self,
...
}: let
inherit (lib) mkDefault ldTernary;
in {
imports = [
# imported home-manager modules
self.homeManagerModules.gtklock
self.homeManagerModules.swaync

# important system environment config
./system
# programs that are used, e.g. GUI apps
Expand Down
3 changes: 3 additions & 0 deletions home/isabel/programs/configs/gui/swaync.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
lib,
self,
osConfig,
...
}: let
inherit (lib) mkIf;
in {
imports = [self.homeManagerModules.swaync];

services.swaync = mkIf osConfig.modules.programs.gui.bars.waybar.enable {
enable = true;
systemd.enable = true;
Expand Down
3 changes: 3 additions & 0 deletions home/isabel/services/wayland/screenlock/gtklock.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
lib,
pkgs,
self,
osConfig,
defaults,
...
}: let
inherit (lib) mkIf isWayland;
in {
imports = [self.homeManagerModules.gtklock];

config = mkIf ((isWayland osConfig) && defaults.screenLocker == "gtklock") {
programs.gtklock = {
enable = true;
Expand Down

0 comments on commit fdfc3e9

Please sign in to comment.