https://github.com/syncom/nix-dotfiles
Nix dotfiles
https://github.com/syncom/nix-dotfiles
Last synced: 6 months ago
JSON representation
Nix dotfiles
- Host: GitHub
- URL: https://github.com/syncom/nix-dotfiles
- Owner: syncom
- Created: 2022-01-20T04:25:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T00:30:30.000Z (about 1 year ago)
- Last Synced: 2025-02-25T07:47:27.921Z (about 1 year ago)
- Language: Nix
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nix configuration files
[](https://github.com/syncom/nix-dotfiles/actions/workflows/build-hm-pkgs.yml)
- Set up channels
```bash
# For NixOS. Run `sudo nix-channel --list` to check
sudo nix-channel --add https://nixos.org/channels/nixos-23.05 nixos
sudo nix-channel --update
# For home-manager. Run `nix-channel --list` to check
nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
nix-channel --update
```
- `nixos`: System configuration to go to `/etc/`
- Update system configuration with
```bash
# sudo nixos-rebuild build # for test
sudo nixos-rebuild switch --upgrade
sudo nixos-rebuild boot
# Optional
sudo nix-collect-garbage -d
```
- `nixpkgs` and `home-manager`: Nixpkgs and Home Manager configurations to go to
`~/.config/`
- Update user configuration with
```bash
home-manager build
home-manager switch
```