1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Remove unused stuff and the projectPath hack

This commit is contained in:
RGBCube 2023-05-14 12:50:39 +03:00
parent c08d2d9ff5
commit 5f2c11e78b
3 changed files with 0 additions and 18 deletions

View file

@ -77,18 +77,6 @@
normalUser = attributes: attributes // {
isNormalUser = true;
};
# Q: Can't we just do supply a relative path "./foo" ?
# A: When configuring our system with flakes, Nix copies them to the
# Nix store to run them. So we can't use relative paths as they will refer
# to a file which is in the Nix store, and is immutable because it is in
# the Nix store, which beats the point of abusing Home Managers
# mkOutOfStoreSymlink to create symlinks to mutable files.
# To avoid this, we must give an absolute path to a file,
# so we do this. The @pwd@ here is replaced by the rebuild script
# with the working directory, then changed back after the build.
# And yes, this is a major hack.
projectPath = "@pwd@";
} [
configurationDirectory
home-manager.nixosModules.home-manager