home-manager
This commit is contained in:
13
lib/utils.nix
Normal file
13
lib/utils.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
mkMutableSymlink =
|
||||
relativePath:
|
||||
lib.mkMutableSymlink (config.sydnix.configDir + relativePath);
|
||||
|
||||
listNixFilesInDirectory = dir:
|
||||
builtins.attrNames
|
||||
(pkgs.lib.filterAttrs
|
||||
(k: _v: pkgs.lib.hasSuffix ".nix" k)
|
||||
(builtins.readDir dir));
|
||||
}
|
||||
Reference in New Issue
Block a user