https://github.com/theronione/nix-config
https://github.com/theronione/nix-config
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/theronione/nix-config
- Owner: TheRoniOne
- License: apache-2.0
- Created: 2024-07-12T23:40:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T18:22:35.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T08:23:26.860Z (over 1 year ago)
- Language: Nix
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nix-config
## Fresh install
1. lsblk (to find the partition name)
2. vim disk-config.nix (to change what is needed)
3. sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./disk-config.nix
4. mount -t btrfs (to check if everything ok)
5. sudo nixos-generate-config --no-filesystems --root /mnt (to generate the hardware-configuration.nix file)
6. sudo cp *.nix /mnt/etc/nixos && cd /mnt/etc/nixos
7. sudo nix --experimental-features "nix-command flakes" flake lock
8. nix --experimental-features "nix-command flakes" repl
9. sudo nixos-install --root /mnt --flake "/mnt/etc/nixos#nixos"
## Check disk config
:lf .
outputs.nixosConfigurations.nixos.config.fileSystems (should return something)