nixos/home/modules/default.nix

25 lines
683 B
Nix
Raw Normal View History

2024-08-21 23:52:09 -07:00
{ lib, ... }:
2024-05-29 23:34:10 -07:00
2024-07-09 03:04:23 -07:00
let
getModules = path:
let
dirEntries = builtins.removeAttrs (builtins.readDir path) [ "default.nix" ];
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
moduleNames = builtins.attrNames moduleEntries;
2024-07-09 02:57:38 -07:00
modulePaths = builtins.map (name: path + /${name}) moduleNames;
in
modulePaths;
2024-07-09 02:57:38 -07:00
in
2024-05-29 20:42:31 -07:00
{
imports = getModules ./.;
2024-05-29 21:54:42 -07:00
2024-05-30 17:15:40 -07:00
snowhawk.user.enable = lib.mkDefault true;
2024-05-30 14:01:29 -07:00
snowhawk.tmux.enable = lib.mkDefault true;
2024-08-03 02:48:31 -07:00
snowhawk.tmux.sessionizer.enable = lib.mkDefault true;
2024-05-29 21:54:42 -07:00
snowhawk.fish.enable = lib.mkDefault true;
2024-05-29 21:59:06 -07:00
snowhawk.git.enable = lib.mkDefault true;
2024-07-08 00:54:45 -07:00
snowhawk.lazygit.enable = lib.mkDefault true;
2024-05-29 20:42:31 -07:00
}