https://github.com/bew/nixed-os-configs
My Nix-based OS configs ;)
https://github.com/bew/nixed-os-configs
nix nixos-config os-config
Last synced: 8 months ago
JSON representation
My Nix-based OS configs ;)
- Host: GitHub
- URL: https://github.com/bew/nixed-os-configs
- Owner: bew
- Created: 2022-10-15T17:26:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T11:23:05.000Z (about 1 year ago)
- Last Synced: 2025-03-23T23:43:54.739Z (about 1 year ago)
- Topics: nix, nixos-config, os-config
- Language: Nix
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nix-based OS configs
## Hosts
### Available hosts
- `frametop`(NixOS): My main workstation, a Framework Laptop 13.
### Hosts are managed individually
Each host has its own folder under `./hosts`.
Inputs are managed separately in each host, using [npins](https://github.com/andir/npins).
This ensures hosts can be worked-on/upgraded individually without breaking other hosts.
All host directories have a set of dedicated input-management actions:
1. `cd` into a host directory (under `./hosts`)
2. Run `just` to print available host actions
## Repo actions
Make sure [just](https://github.com/casey/just) is available in `$PATH`.
(note: use `alias j=just` for shorter/quicker/faster everything 😉)
Run `just` to print available repo actions
### Build / switch OS config for given host
To build the OS config for host `frametop`:
`just dobuild frametop`
To (build if neeeded, and) switch to the OS config for host `frametop`:
`sudo just doswitch frametop`
### Build / switch OS config for current host
Similar to previous section, but using `re` prefix instead of `do` and omitting the host name.
For example:
```sh
just rebuild # reb
sudo just reswitch # res
```
The name of the _current_ host is determined by reading the first line of file `./current-host-name` (which is git-ignored).
Check [`./current-host-name.example`](./current-host-name.example) for an example.