55 lines
1.5 KiB
Markdown
55 lines
1.5 KiB
Markdown
# iiogama's Personal NixOS/Home-Manager Configuration
|
|
|
|
## How to build existing system with flake
|
|
|
|
```
|
|
cd <build repo>
|
|
sudo nixos-rebuild switch --flake ".#<hostname>"
|
|
```
|
|
|
|
## How to update existing system's packages
|
|
|
|
```
|
|
sudo nixos-rebuild switch --flake ".#<hostname>" --update-input nixpkgs --commit-lock-file
|
|
```
|
|
|
|
## How to install new system with flake
|
|
|
|
1. Boot into live NixOS disk and run the following commands:
|
|
```
|
|
sudo su
|
|
nix-env -iA nixos.git
|
|
git clone <repo url> /mnt/etc/nixos
|
|
nixos-install --flake ".#<host>"
|
|
```
|
|
2. Reboot machine, log in, and run the following commands:
|
|
```
|
|
sudo rm -r /etc/nixos/configuration.nix
|
|
```
|
|
3. Move build to desired location.
|
|
|
|
## Nix commands to remember
|
|
|
|
```
|
|
nix flake update
|
|
nix run nixpkgs#<package>
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [Zero To Nix](https://zero-to-nix.com)
|
|
- [The Cute World's NixOS Guide](https://thiscute.world/en/posts/nixos-and-flake-basics/)
|
|
- [NixOS Wiki](https://nixos.wiki/)
|
|
- [The Nix Hour YouTube Playlist](https://www.youtube.com/playlist?list=PLyzwHTVJlRc8yjlx4VR4LU5A5O44og9in)
|
|
- [Nixology YouTube Playlist](https://www.youtube.com/playlist?list=PLRGI9KQ3_HP_OFRG6R-p4iFgMSK1t5BHs)
|
|
- [Nixcloud](https://nixcloud.io)
|
|
|
|
## Todo
|
|
|
|
- [ ] Create additional host configurations
|
|
- [ ] Implement the Impermanence module
|
|
- [ ] Create specific software installations (i.e. gui, gaming, kali-collection, etc)
|
|
- [ ] Implement [Agenix](https://nixos.wiki/wiki/Agenix) or Sopsnix
|
|
- [ ] Implement [Stylix](https://danth.github.io/stylix/)
|
|
- [ ] Implement [MicroVM.nix](https://github.com/astro/microvm.nix)
|