templates downloading via git and submodules

capgemini-cmb
Yves Dubromelle 9 years ago
parent 9100484dda
commit 7a35fcc2c8

@ -1,3 +1,7 @@
all:
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;
target = "/custom/Makefile";
}
{
source = ./nixos-template-base;
target = "/custom/nixos-template-base";
}
];
environment.shellAliases = { nixos-generate-custom-config = "cd /iso/custom/ && make";};
}

Loading…
Cancel
Save