Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

Kwarf/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

140 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

I'm archiving this again, as I'm distro hopping to Fedora Silverblue instead. I feel like that should fit me pretty well, as I like the idea of immutability in the base system then using separate containers for each project I'm working on to keep things neat and separate. I'm also one of those weird people who appreciate the sandboxing of Flatpak apps. I obviously already had essentially that same setup through this config, but I think I want something more hands-off.


nixos-config

This is my personal NixOS configuration, with the main goal of having a unified system install and configuration between my desktop and laptop.

Features

Inspired by

Installation instructions

These are just personal notes because I tend to forget these things.

Remote install

Using nixos-anywhere to push the configuration for installation over SSH.

  1. Boot a NixOS ISO (other systems are supported too, but untested by me).
  2. Create a new file under modules/hosts/ for the new host, taking "inspiration" from one of those already there.
  3. Run nixos-generate-config --no-filesystems --show-hardware-config on the new machine, and add those options to the host configuration.
  4. Create an appropriate disko.devices definition, see examples.
  5. Run the installation:
nix run github:nix-community/nixos-anywhere -- --flake .#<hostname> --target-host nixos@<ip address>
  1. Profit. Wait for it to finish and reboot.

It's possible to pass either remote or local as a --build-on option to nixos-anywhere, which could be nice depending on which machine is faster or has a better connection.

About

My personal NixOS configuration

Resources

Stars

Watchers

Forks

Contributors

Languages