helm/lib/paths.nix

16 lines
406 B
Nix
Raw Normal View History

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