Compare commits

..

No commits in common. "13c97347f85d558cf84cb1bd41b623ac31d65f7e" and "9e982505a6041a4b8338b2a438da059f9af5757c" have entirely different histories.

3 changed files with 5 additions and 31 deletions

View File

@ -1,19 +1,14 @@
{ lib, ... }: { lib, ... }:
let let
getModules = path: dirEntries = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
let
dirEntries = builtins.removeAttrs (builtins.readDir path) [ "default.nix" ];
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries; moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
moduleNames = builtins.attrNames moduleEntries; moduleNames = builtins.attrNames moduleEntries;
modulePaths = builtins.map (name: ./${name}) moduleNames;
modulePaths = builtins.map (name: path + /${name}) moduleNames;
in
modulePaths;
in in
{ {
imports = getModules ./.; imports = modulePaths;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@ -1,20 +0,0 @@
{ 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;
};
};
};
}

View File

@ -24,7 +24,6 @@ in
redshift.enable = true; redshift.enable = true;
xivlauncher.enable = true; xivlauncher.enable = true;
flameshot.enable = true; flameshot.enable = true;
tldr.enable = true;
}; };
snowhawk.ssh = { snowhawk.ssh = {
enable = true; enable = true;