la génération de configuration se fait avec un script au lieu d'un Makefile
parent
e4b7415716
commit
8748f7c0d4
@ -1,7 +0,0 @@
|
||||
all:
|
||||
nixos-generate-config --root /mnt
|
||||
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 https://gogs.prunetwork.fr/Capgemini-CDS-Arkea/template-nixos.git capgemini-cmb
|
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Génération de la configuration par l'outil NixOS
|
||||
nixos-generate-config --root /mnt
|
||||
# Configuration de Git
|
||||
git config --global user.email "nixos-live@example.org"
|
||||
git config --global user.name "NixOS Live"
|
||||
# Initialisation du dépôt de la machine et ajout des templates de configuration
|
||||
cd /mnt/etc/nixos
|
||||
git init .
|
||||
git add .
|
||||
git commit -m "initial commit"
|
||||
git submodule add https://gogs.prunetwork.fr/nixos-config/nixos-template-base.git base
|
||||
git submodule add https://gogs.prunetwork.fr/Capgemini-CDS-Arkea/template-nixos.git capgemini-cmb
|
Loading…
Reference in New Issue