nixcfg/README.md

31 lines
1.6 KiB
Markdown
Raw Normal View History

2024-03-04 23:13:18 -05:00
# nixcfg
2024-03-04 23:15:53 -05:00
![](./_img/nixos-gnome.png)
2024-03-04 23:13:18 -05:00
2024-03-04 23:42:20 -05:00
## Hosts
### Petalburg
Lenovo Yoga 9i Gen 8 convertible running nixos-unstable. Core i7 1360P, 15GB RAM, 512GB SSD. Runs GNOME, home directory managed by [home-manager](https://github.com/nix-community/home-manager).
### Rustboro
Thinkpad T440p running nixos-unstable. Uses KDE Plasma 6. Home directory managed by home-manager.
### Mauville
Gaming desktop & home lab running [Slateblue](https://github.com/alyraffauf/slateblue), a customized [Fedora Silverblue](https://fedoraproject.org/atomic-desktops/silverblue/) image made with [BlueBuild](https://github.com/blue-build/template). Home directory managed by home-manager. Ryzen 5 2600, 16GB RAM, Radeon RX 6700.
2024-03-04 23:13:18 -05:00
## Deploying to NixOS
> :red_circle: **READ**: **Do not deploy this flake directly to your machine. It won't work.**
2024-03-04 23:42:20 -05:00
> This is my own [NixOS](https://nixos.org/) and [home-manager](https://github.com/nix-community/home-manager) flake for my personal devices.
2024-03-04 23:13:18 -05:00
> Each hardware-configuration is host-specific. If you fork this repository, replace them with the hardware-configuration.nix that NixOS generates for you.
### Enabling Flakes
2024-03-04 23:42:20 -05:00
While widely used and considered stable, [flakes](https://nixos.wiki/wiki/Flakes) are still considered eperimental. To enable Flakes, add the following lines to your `configuration.nix` and rebuild.
2024-03-04 23:13:18 -05:00
```nix
nix.settings.experimental-features = [ "nix-command" "flakes" ];
```
### Building Flake
2024-03-04 23:42:20 -05:00
In order to deploy this Flake on your host, run the following command:
```
2024-03-04 23:13:18 -05:00
sudo nixos-rebuild boot --flake github:alyraffauf/nixcfg
```
2024-03-04 23:42:20 -05:00
Reboot to apply the flake's configuration for the chosen host.