In my dotfiles I want to locate where the directory is on my machine in my nix files.
For example I would like:
imports = [
./configs/alacritty.nix
./configs/code.nix
];
To look like this:
imports = [
/my/absolute/path/configs/alacritty.nix
/my/absolute/path/configs/code.nix
];
and I need this to work regardless of where the nixos directory is located. I hope I’ve explained this well as I can’t find anything when searching online. Thanks in advance.