Compare commits
2 Commits
9e982505a6
...
13c97347f8
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | 13c97347f8 | |
Zynh Ludwig | 3df5994159 |
|
@ -1,14 +1,19 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
dirEntries = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
|
||||
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
||||
moduleNames = builtins.attrNames moduleEntries;
|
||||
getModules = path:
|
||||
let
|
||||
dirEntries = builtins.removeAttrs (builtins.readDir path) [ "default.nix" ];
|
||||
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
||||
moduleNames = builtins.attrNames moduleEntries;
|
||||
|
||||
modulePaths = builtins.map (name: ./${name}) moduleNames;
|
||||
|
||||
modulePaths = builtins.map (name: path + /${name}) moduleNames;
|
||||
in
|
||||
modulePaths;
|
||||
in
|
||||
{
|
||||
imports = modulePaths;
|
||||
imports = getModules ./.;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.snowhawk.tldr;
|
||||
in
|
||||
{
|
||||
options.snowhawk.tldr = {
|
||||
enable = lib.mkEnableOption "tldr";
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.tealdeer = {
|
||||
enable = true;
|
||||
settings = {
|
||||
updates.auto_update = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -24,6 +24,7 @@ in
|
|||
redshift.enable = true;
|
||||
xivlauncher.enable = true;
|
||||
flameshot.enable = true;
|
||||
tldr.enable = true;
|
||||
};
|
||||
snowhawk.ssh = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in New Issue