nixos/home/modules/default.nix

25 lines
683 B
Nix
Raw Normal View History

2024-08-22 06:52:09 +00:00
{ lib, ... }:
2024-05-30 06:34:10 +00:00
2024-07-09 10:04:23 +00: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 09:57:38 +00:00
modulePaths = builtins.map (name: path + /${name}) moduleNames;
in
modulePaths;
2024-07-09 09:57:38 +00:00
in
2024-05-30 03:42:31 +00:00
{
imports = getModules ./.;
2024-05-30 04:54:42 +00:00
2024-05-31 00:15:40 +00:00
snowhawk.user.enable = lib.mkDefault true;
2024-05-30 21:01:29 +00:00
snowhawk.tmux.enable = lib.mkDefault true;
2024-08-03 09:48:31 +00:00
snowhawk.tmux.sessionizer.enable = lib.mkDefault true;
2024-05-30 04:54:42 +00:00
snowhawk.fish.enable = lib.mkDefault true;
2024-05-30 04:59:06 +00:00
snowhawk.git.enable = lib.mkDefault true;
2024-07-08 07:54:45 +00:00
snowhawk.lazygit.enable = lib.mkDefault true;
2024-05-30 03:42:31 +00:00
}