templates downloading via git and submodules
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
all:
|
all:
|
||||||
nixos-generate-config --root /mnt
|
nixos-generate-config --root /mnt
|
||||||
cp -r nixos-template-base /mnt/etc/nixos/
|
git config --global user.email "nixos-live@example.org"
|
||||||
|
git config --global user.name "NixOS Live"
|
||||||
|
cd /mnt/etc/nixos && git init . && git add . && git commit -m "initial commit"
|
||||||
|
cd /mnt/etc/nixos && git submodule add http://gogs.prunetwork.fr:80/nixos-config/nixos-template-base.git base
|
||||||
|
cd /mnt/etc/nixos && git submodule add http://gogs.prunetwork.fr:80/nixos-config/nixos-template-desktop.git desktop
|
||||||
|
|||||||
@@ -16,9 +16,6 @@
|
|||||||
source = ./Makefile.installation;
|
source = ./Makefile.installation;
|
||||||
target = "/custom/Makefile";
|
target = "/custom/Makefile";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
source = ./nixos-template-base;
|
|
||||||
target = "/custom/nixos-template-base";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
environment.shellAliases = { nixos-generate-custom-config = "cd /iso/custom/ && make";};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user