Skip to content

JamieMagee/nix-config

Repository files navigation

GitHub Workflow Status Built with nix

nix-config

My NixOS and Home Manager configs. Everything is a Nix flake.

Hosts

  • alfred -- x86_64 NAS, media services (Plex, Sonarr, Radarr, etc.)
  • jamie-desktop -- main desktop, AMD CPU/GPU, KDE Plasma, gaming
  • jamie-hyperv -- Hyper-V Generation 2 VM, KDE Plasma, dev tools
  • oci-vm -- Oracle Cloud ARM64 VM
  • rpi5 -- Raspberry Pi 5, Home Assistant, AdGuard, Caddy

There are also standalone Home Manager configs for WSL machines. See docs/WSL.md.

Structure

flake.nix               -- entry point
hosts/
  alfred/               -- NAS / media server
  jamie-desktop/        -- main desktop
  jamie-hyperv/         -- Hyper-V VM
  oci-vm/               -- Oracle Cloud VM
  rpi5/                 -- Raspberry Pi 5
  common/               -- shared NixOS modules
home/
  jamie/                -- Home Manager user configs
modules/                -- custom NixOS and Home Manager modules

Usage

Build and switch on the local machine:

sudo nixos-rebuild switch --flake .#hostname

Apply Home Manager standalone:

home-manager switch --flake .#username@hostname

Deploy to a remote host:

nix run github:serokell/deploy-rs .#hostname

Build a Hyper-V VHDX image you can import directly (works from any machine with Nix):

nix build .#nixosConfigurations.jamie-hyperv.config.system.build.images.hyperv

About

nix-config

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •