https://github.com/srackham/nixos-configurations
https://github.com/srackham/nixos-configurations
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/srackham/nixos-configurations
- Owner: srackham
- Created: 2024-03-22T03:11:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T04:52:31.000Z (over 1 year ago)
- Last Synced: 2025-02-13T05:27:59.389Z (over 1 year ago)
- Language: Nix
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NixOS Configuration Files
A set of NixOS configuration files and build helpers.
- NixOS build files named like `./hosts//configuration.nix`, included modules are named like in the `./modules` directory.
- Use the `exported/post-install-config.sh` script in the chezmoi repo to install distro agnostic configuration options not managed by the NixOS configuration.
## TODO
## Usage
1. If you haven't already done so, you will need to install and log in to NixOS on the target machine.
2. Download this repo.
```sh
cd ~
git clone https://github.com/srackham/nixos-configurations.git
```
3. Optionally edit configuration files.
4. Rebuild NixOS using the `mknixos` alias:
```sh
alias mknixos="sudo nixos-rebuild -I nixos-config=$HOME/share/projects/nixos-configurations/hosts/$HOST/configuration.nix"
mknixos switch # Run `nixos-rebuild switch`.
```
## Host Configurations
- `nixos1`: GNOME desktop VirtualBox guest.
- `dell7090`: Dell Optiplex 7090 SFF desktop PC.
- `rpi1`: Raspberry Pi 4 NAS server (CUPS, NFS, SMB).
Nix modules imported by host configuration files:
- `./modules/rp4.nix`: Raspberry Pi 4 specific.
- `./modules/server.nix`: services, packages and users.
A comprehensive look at NixOS configuration modularity can be found here:
[Modularize NixOS and Home Manager](https://www.youtube.com/watch?v=vYc6IzKvAJQ).