https://github.com/simonrw/nix-config
https://github.com/simonrw/nix-config
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonrw/nix-config
- Owner: simonrw
- License: apache-2.0
- Created: 2022-09-12T23:16:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T19:52:16.000Z (over 1 year ago)
- Last Synced: 2024-10-29T21:45:10.448Z (over 1 year ago)
- Language: Nix
- Homepage:
- Size: 64.2 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nix config
I manage my systems with [nix](https://nixos.org):
* [NixOS](https://nixos.org)
* [nix-darwin](https://github.com/LnL7/nix-darwin)
* [home-manager](https://github.com/nix-community/home-manager)
I do not expect anyone else to use this system, but there may be useful information in the configs.
## Layout
* nixos system configurations under [`system/nixos`](./system/nixos)
* my main system ["astoria"](./system/nixos/astoria) is the configuration of my main development PC (intel CPU, nVidia GPU)
* nix-darwin configurations under [`system/darwin`](./system/darwin)
* home-manager configuration under [`home`](./home) with "top level" configuration at [`home/home.nix`](./home/home.nix) with imports to other sub-modules. I am trying to migrate to a more modular configuration as part of learning nix, but I'm not 100% there yet
## Usage
*These instructions are for my benefit only*
### Updating the system
```
$ ./bin/switch.sh
```
### Building the system into the result dir
```
$ ./bin/build.sh
```
### Building a VM of the system on NixOS
```
$ ./bin/vm-build.sh
```
### Playing around with the config in a REPL
```
./bin/nixos-config.sh
```
### Updating my home-manager config only
```
./bin/home-switch.sh
```
### Building my home-manager config only
```
./bin/home-build.sh
```