vinnyA3 / nixos-configuration

A repo for my nixos configuration files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nixos logo  NixOS Configuration

Here are my NixOS configuration files!

Current Machines (hosts):

  • nixvm: homelab server
  • zerodays: home desktop (legacy)

Getting Started

⚠️ 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

User Nix Configs

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.

About

A repo for my nixos configuration files


Languages

Language:C 57.4%Language:Nix 41.6%Language:Shell 1.1%