templates downloading via git and submodules

This commit is contained in:
2016-05-09 01:25:47 +02:00
parent 9100484dda
commit 7a35fcc2c8
2 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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";};
} }