https://github.com/tfc/nixos-configs
My personal NixOS configs for different machines.
https://github.com/tfc/nixos-configs
Last synced: about 1 year ago
JSON representation
My personal NixOS configs for different machines.
- Host: GitHub
- URL: https://github.com/tfc/nixos-configs
- Owner: tfc
- Created: 2022-03-04T15:11:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T19:56:01.000Z (about 2 years ago)
- Last Synced: 2024-04-02T20:54:35.712Z (about 2 years ago)
- Language: Nix
- Homepage:
- Size: 371 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local deployment of a config
```sh
# flake system attribute is automatically selected from current hostname
nixos-rebuild switch --flake github:tfc/nixos-configs
```
or
```sh
nix build github:tfc/nixos-configs#nixosConfigurations..config.system.build.toplevel
sudo nix-env -p /nix/var/nix/profiles/system --set $(readlink result)
sudo ./result/bin/switch-to-configuration switch
```
# Remote deployment of a config
```sh
nixos-rebuild switch --flake github:tfc/nixos-configs# --target-host --use-remote-sudo
```