helm/lib/paths.nix
Henrik Lissner a75c64d04a
Rewrite to use flakes
This puts a hard dependency on 20.09, but that's to be expected.
2020-10-11 01:31:33 -04:00

16 lines
392 B
Nix

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