nixos/README.md

24 lines
786 B
Markdown
Raw Normal View History

2021-11-15 17:43:04 +01:00
# nixos
2021-11-29 10:55:16 +01:00
This repository contains my configuration for my Nixos systems.
I don't provide any garantuees that it will work on other systems.
In addition some of the scripts required for installation will destroy your data when used.
2021-11-20 17:16:43 +01:00
## Base installation
2021-11-20 16:30:25 +01:00
1. `curl https://git.2li.ch/Nebucatnetzer/nixos/archive/master.tar.gz | tar xz`
2022-01-24 19:06:51 +01:00
2. `cd nixos && nix-shell`
3. `sudo python3 scripts/format-disk.py`
2022-01-24 17:22:13 +01:00
4. `sudo nixos-install --no-root-passwd --root /mnt --impure --flake .#SYSTEMNAME`
2021-11-29 10:55:16 +01:00
2022-01-17 11:23:55 +01:00
## Update remote systems
Simply run the script `scripts/update_all_systems.xsh` and it will iterate over
all defined systems.
The script requires Xonsh but can be easily adapted to BASH or similar.
2021-11-29 10:55:16 +01:00
## Non-Nixos System
1. `scripts/add-home-manager-channel.sh`
2. `scripts/install-home-manager.sh`