helm/lib/paths.nix
2020-10-11 21:30:11 -04:00

16 lines
406 B
Nix

{ self, lib, ... }:
with builtins;
with lib;
rec {
# ...
dotFilesDir = toString ../.;
modulesDir = "${dotFilesDir}/modules";
configDir = "${dotFilesDir}/config";
binDir = "${dotFilesDir}/bin";
themeDir = "${modulesDir}/themes";
homeDir = "/home/${let name = getEnv "USERNAME"; in
if elem name [ "" "root" ]
then "hlissner" else name}";
}