https://github.com/pfgray/provisioning
Custom environment configuration via nix
https://github.com/pfgray/provisioning
Last synced: 2 months ago
JSON representation
Custom environment configuration via nix
- Host: GitHub
- URL: https://github.com/pfgray/provisioning
- Owner: pfgray
- Created: 2022-05-04T17:43:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-16T17:06:10.000Z (4 months ago)
- Last Synced: 2025-01-25T06:26:17.244Z (4 months ago)
- Language: HTML
- Size: 115 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
This flake contains home-manager configurations for my environment.
It specifies things like fish config files, cli programs, vscode & its plugins.
The way it works, is I create a new `flake.nix` on each machine, with the machine-specific settings for it. There's a template for this, that I initiate by running:
```sh
nix run github:pfgray/provisioning#init
```This script prompts me for my user/home directory/system, but can make educated guesses for each of those. This creates a `flake.nix` file which is setup to pull in the configurations form this repo. I then add any customizations to that flake which might not belong on other machines (i.e. proprietary work tools).
To apply the settings, run:
```sh
nix run --impure github:nix-community/home-manager#home-manager \
--no-write-lock-file -- switch --flake ".#base"
```