Skip to content

My NixOS flake for all my machines including a homelab (h81)

Notifications You must be signed in to change notification settings

Toomoch/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-config

Environment setup

Setting up the environment

Flakes

nix develop

No flakes

nix-shell

Installation

Installing NixOS in UEFI x86 manually

Follow the official manual

Installing NixOS with nixos-anywhere

To check that the configuration is bootable, run:

nix run github:nix-community/nixos-anywhere -- --flake .#hostname --vm-test

Boot the installer and change the root password, then run:

nix run github:nix-community/nixos-anywhere -- --flake .#hostname root@ip

Building a NixOS sdimage for the Raspberry Pi

nix build .#nixosConfigurations.rpi3.config.system.build.sdImage

This image can later be flashed with dd.

Home Manager for Non-NixOS systems

Install nix:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Add to ~/.config/nix/nix.conf:

experimental-features = nix-command flakes

And then run:

nix run home-manager/master -- init --switch
mkdir ~/projects && cd ~/projects
git clone https://github.com/Toomoch/nixos-config.git && cd nixos-config
home-manager switch --flake .#username

Deployment

Deploying NixOS locally

For our hostname:

just rebuild

For a specific hostname:

just rebuild hostname

Deploying NixOS over the network with deploy-rs

To deploy:

just deploy hostname

About

My NixOS flake for all my machines including a homelab (h81)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published