nixos-config/README.md

17 lines
660 B
Markdown
Raw Normal View History

2023-12-25 00:10:00 +01:00
## Felixalbs nixos config
Contains configurations for some nixos servers, some nixos desktops and a [nix-darwin](https://github.com/LnL7/nix-darwin) host.
Secrets are managed with [sops-nix](https://github.com/Mic92/sops-nix).
2023-01-20 20:21:16 +01:00
### Build:
2023-12-25 00:10:00 +01:00
- Build locally on another machine:
2023-01-20 20:21:16 +01:00
```
2023-10-14 00:11:53 +02:00
nix --extra-experimental-features "nix-command flakes" build ".#nixosConfigurations.sarek.config.system.build.toplevel"
2023-01-20 20:21:16 +01:00
```
2023-10-14 00:11:53 +02:00
(replace "sarek" with the hostname)
2023-01-20 20:21:16 +01:00
- Build, install and switch on the actual target
```
nixos-rebuild switch --update-input nixpkgs --update-input unstable --no-write-lock-file --refresh --flake github+felixalbrigtsen/nixos-server-conf.git --upgrade
```