mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Remove unused stuff and the projectPath hack
This commit is contained in:
parent
c08d2d9ff5
commit
5f2c11e78b
3 changed files with 0 additions and 18 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -7,14 +7,10 @@
|
||||||
!machines/asus/firefox/
|
!machines/asus/firefox/
|
||||||
!machines/asus/git/
|
!machines/asus/git/
|
||||||
!machines/asus/helix/
|
!machines/asus/helix/
|
||||||
!machines/asus/intellij/
|
|
||||||
!machines/asus/libreoffice/
|
|
||||||
!machines/asus/networkmanager/
|
!machines/asus/networkmanager/
|
||||||
!machines/asus/nushell/
|
!machines/asus/nushell/
|
||||||
!machines/asus/openttd/
|
!machines/asus/openttd/
|
||||||
!machines/asus/pipewire/
|
!machines/asus/pipewire/
|
||||||
!machines/asus/qbittorrent/
|
|
||||||
!machines/asus/wine/
|
|
||||||
!machines/asus/xserver/
|
!machines/asus/xserver/
|
||||||
|
|
||||||
!flake.lock
|
!flake.lock
|
||||||
|
|
12
flake.nix
12
flake.nix
|
@ -77,18 +77,6 @@
|
||||||
normalUser = attributes: attributes // {
|
normalUser = attributes: attributes // {
|
||||||
isNormalUser = true;
|
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
|
configurationDirectory
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
|
@ -19,9 +19,7 @@ fi
|
||||||
|
|
||||||
sudo true
|
sudo true
|
||||||
|
|
||||||
sed -i.old "s|@pwd@|$PWD|g" flake.nix
|
|
||||||
sudo nixos-rebuild switch --impure --flake .#$machine || exit 1
|
sudo nixos-rebuild switch --impure --flake .#$machine || exit 1
|
||||||
mv -f flake.nix.old flake.nix
|
|
||||||
|
|
||||||
if [[ $1 != "-c" && $1 != "--clean-garbage" ]]; then
|
if [[ $1 != "-c" && $1 != "--clean-garbage" ]]; then
|
||||||
read -p "Clean garbage? [Y/N]: " clean_garbage
|
read -p "Clean garbage? [Y/N]: " clean_garbage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue