Compare commits
No commits in common. "bb8b83274aff9cb10fbe945f5a988cbd0ee2dcd8" and "cdb63d11149b6ece7879ef1f19e7c67219d3633e" have entirely different histories.
bb8b83274a
...
cdb63d1114
11
README.md
11
README.md
@ -111,7 +111,7 @@ This creates two files:
|
|||||||
|
|
||||||
### 7. Check the detected bootloader
|
### 7. Check the detected bootloader
|
||||||
|
|
||||||
Check in `/mnt/etc/nixos/configuration.nix`, that the bootloader is configured like this:
|
Check inn `/mnt/etc/nixos/configuration.nix`, that the bootloader is configured like this:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
@ -132,7 +132,7 @@ nixos-install
|
|||||||
reboot
|
reboot
|
||||||
```
|
```
|
||||||
|
|
||||||
### 9. After the first reboot
|
### 9. Nach dem ersten Start
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl --output release.tar.gz https://gitea.fischer.im/sebastian/nixos-cesium/archive/[0.0.2].tar.gz
|
curl --output release.tar.gz https://gitea.fischer.im/sebastian/nixos-cesium/archive/[0.0.2].tar.gz
|
||||||
@ -140,7 +140,6 @@ tar xzf release.tar.gz
|
|||||||
chmod 744 nixos-cesium/script/post-install.sh
|
chmod 744 nixos-cesium/script/post-install.sh
|
||||||
./nixos-cesium/script/post-install.sh
|
./nixos-cesium/script/post-install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
If you don't use the post-installation script, follow the next step
|
If you don't use the post-installation script, follow the next step
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -159,16 +158,14 @@ reboot
|
|||||||
|
|
||||||
### 10. Post Installation
|
### 10. Post Installation
|
||||||
|
|
||||||
Generate SMB-credentials (if network mounts are used)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# SMB-Zugangsdaten einrichten (falls Netzlaufwerke genutzt werden)
|
||||||
sudo /etc/nixos/setup-smb-credentials.sh
|
sudo /etc/nixos/setup-smb-credentials.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Wartung
|
## Wartung
|
||||||
|
|
||||||
Optimise Nix Store and remove old generations
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Nix Store optimieren und alte Generationen entfernen
|
||||||
sudo nix-store --optimise && sudo nix-collect-garbage -d
|
sudo nix-store --optimise && sudo nix-collect-garbage -d
|
||||||
```
|
```
|
||||||
|
|||||||
@ -11,7 +11,7 @@ DEFAULT_DISK="/dev/sda"
|
|||||||
read -p "Disk to install to [${DEFAULT_DISK}]: " DISK
|
read -p "Disk to install to [${DEFAULT_DISK}]: " DISK
|
||||||
DISK="${DISK:-$DEFAULT_DISK}"
|
DISK="${DISK:-$DEFAULT_DISK}"
|
||||||
|
|
||||||
if [ ! -b "${DISK}" ]; then
|
if [ ! -b "$DISK" ]; then
|
||||||
echo "Error: ${DISK} is not a valid block device."
|
echo "Error: ${DISK} is not a valid block device."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -19,8 +19,8 @@ fi
|
|||||||
echo "Using disk: ${DISK}"
|
echo "Using disk: ${DISK}"
|
||||||
|
|
||||||
# Partitioning
|
# Partitioning
|
||||||
read -p "Create partitions table? DELETES ALL DATA! (j/N): " ANSWER
|
read -p "Create partitions table? DELETES ALL DATA! (j/N): " answer
|
||||||
if [ "${ANSWER}" = "j" ] || [ "${ANSWER}" = "J" ]; then
|
if [ "$answer" = "j" ] || [ "$answer" = "J" ]; then
|
||||||
# GPT-partition table
|
# GPT-partition table
|
||||||
parted "${DISK}" -- mklabel gpt
|
parted "${DISK}" -- mklabel gpt
|
||||||
|
|
||||||
@ -45,8 +45,8 @@ mkfs.fat -F 32 -n boot ${DISK}1
|
|||||||
mkswap -L swap ${DISK}2
|
mkswap -L swap ${DISK}2
|
||||||
mkfs.ext4 -L nixos ${DISK}3
|
mkfs.ext4 -L nixos ${DISK}3
|
||||||
|
|
||||||
read -p "Format Home-partition? Deletes all userdata! (j/N): " ANSWER
|
read -p "Format Home-partition? Deletes all userdata! (j/N): " answer
|
||||||
if [ "${ANSWER}" = "j" ] || [ "${ANSWER}" = "J" ]; then
|
if [ "$answer" = "j" ] || [ "$answer" = "J" ]; then
|
||||||
# Format home-partition
|
# Format home-partition
|
||||||
mkfs.ext4 -L home ${DISK}4
|
mkfs.ext4 -L home ${DISK}4
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -4,30 +4,7 @@ sudo -i
|
|||||||
|
|
||||||
cp -r ~/nixos-cesium/config/* /etc/nixos/
|
cp -r ~/nixos-cesium/config/* /etc/nixos/
|
||||||
|
|
||||||
# VM module activation
|
|
||||||
echo ""
|
|
||||||
echo "Activate a VM module?"
|
|
||||||
echo " 1) vm-guest.nix (VM runs inside a hypervisor)"
|
|
||||||
echo " 2) vm-host.nix (System runs VMs via libvirtd)"
|
|
||||||
echo " n) None"
|
|
||||||
read -p "Selection [n]: " VM_CHOICE
|
|
||||||
VM_CHOICE="${VM_CHOICE:-n}"
|
|
||||||
|
|
||||||
case "${VM_CHOICE}" in
|
|
||||||
1)
|
|
||||||
sed -i 's|# ./vm-guest.nix|./vm-guest.nix|' /etc/nixos/configuration.nix
|
|
||||||
echo "vm-guest.nix activated."
|
|
||||||
;;
|
|
||||||
2)
|
|
||||||
sed -i 's|# ./vm-guest.nix|./vm-host.nix|' /etc/nixos/configuration.nix
|
|
||||||
echo "vm-host.nix activated."
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "No VM module activated."
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
nix-channel --add https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz home-manager
|
nix-channel --add https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz home-manager
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
|
|
||||||
nixos-rebuild switch --option experimental-features "nix-command flakes"
|
nixos-rebuild switch
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user