https://github.com/robitx/nix-config
https://github.com/robitx/nix-config
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/robitx/nix-config
- Owner: Robitx
- Created: 2024-03-04T13:55:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-15T23:40:39.000Z (about 1 year ago)
- Last Synced: 2025-07-19T04:35:50.308Z (11 months ago)
- Language: Nix
- Size: 769 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Install
```
nix-shell -p git neovim tree
git clone https://github.com/Robitx/nix-config.git
cd nix-config
mkpasswd -m sha-512 > passwords/USERNAME
lsblk
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./disko.nix --arg device '"/dev/DEVICE"'
lsblk
sudo systemd-machine-id-setup --root /mnt --print
sudo cp -r ~/nix-config /mnt/persist/nix-config
sudo nixos-install --impure --no-root-passwd --root /mnt --flake /mnt/persist/nix-config/#MACHINE
```
# Optionals
```
sudo nixos-generate-config --no-filesystems --root /mnt
sudo cp /mnt/etc/nixos/hardware-configuration.nix /mnt/persist/nix-config/
sudo nixos-enter --root /mnt
```