mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Make NvChad work with lots of hacks
This commit is contained in:
parent
1aabfa2475
commit
6155df6199
6 changed files with 32 additions and 13 deletions
18
flake.nix
18
flake.nix
|
@ -46,10 +46,26 @@
|
|||
overlays = [fenix.overlays.default];
|
||||
};
|
||||
|
||||
# Helper function for DRY.
|
||||
# Helper functiona for DRY.
|
||||
homeManagerConfiguration = userName: attrs: {
|
||||
home-manager.users.${userName} = attrs;
|
||||
};
|
||||
|
||||
homeManagerConfigurationWithArgs = userName: attrsFunc: {
|
||||
home-manager.users.${userName} = args: attrsFunc args;
|
||||
};
|
||||
|
||||
# Q: Can't we just do "./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 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@";
|
||||
};
|
||||
|
||||
modules = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue