Here are my NixOS configuration files!
- nixvm: homelab server
- zerodays: home desktop (legacy)
⚠️ if you're looking to test the configuration only, make sure to backup your current configuration before running the linking script!
To get started:
- cd & clone repo to /etc/nixos:
git clone https://github.com/vinnyA3/nixos-configuration.git \
&& cd nixos-configuration
-
run the linking / init script:
./ln-host <desired host config name in 'hosts'>
- example:
./ln-host 'nixvm'
-
optional - if you're setting up your NixOS env from scratch, you can generate your hardware config now:
nixos-generate-config
-
finally, build the configuration:
- for good measure, test the build:
nixos-rebuild dry-build
- when ready, enable on boot & build:
nixos-rebuild switch
- for good measure, test the build:
Some hosts, in ./hosts
, have specific user configs. There files are nix
configs that control the environment at the user-level. Just copy these to
your user's ~/.nixpkgs
to spin up the env.