Skip to content

martijnboers/nixos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos

Description

NixOS is a Linux distribution with a unique package management system, Nix, offering precise control and reproducible configurations. It follows a declarative and functional programming approach, ensuring system reliability and easy rollback.

You could directly use this but it's better to extract the pieces you want in your own config. Checkout nix-starter-config for a good initial starting point for NixOS with flakes.

Fresh installation notes

  • git clone --recursive --depth=1 [email protected]:martijnboers/nixos.git ~/Nix
  • nixos-rebuild switch --flake ".?submodules=1" --use-remote-sudo
  • doas tailscale up --login-server https://headscale.donder.cloud
  • pgrok init --remote-addr hadouken.machine.thuis:6666 --token {token}
  • gpg --import private.key

Hetzner

SSHPASS=<pwd> nix run github:nix-community/nixos-anywhere -- --flake .#shoryuken --env-password root@<ip>

Rasperry Pi SD image

nix run nixpkgs#nixos-generators -- -f sd-aarch64 --flake .#tenshin --system aarch64-linux -o ~/pi.img

Loading repl

nix repl
nix-repl> :lf /home/martijn/Nix
nix-repl> nixosConfigurations.[TAB]

Restore backups

borg list ssh://[email protected]/./repo
borgfs -f ssh://[email protected]/./repo::hadouken-default-2024-03-24T00:00:00 /mnt/restore

Documentation

project link
quickemu https://github.com/quickemu-project/quickemu/wiki/05-Advanced-quickemu-configuration
microvm https://astro.github.io/microvm.nix
nixvim https://nix-community.github.io/nixvim/NeovimOptions/index.html
agenix https://github.com/ryantm/agenix/tree/main/doc
home-manager https://home-manager-options.extranix.com/
stylix https://danth.github.io/stylix/
realtek-re-kmod https://www.freshports.org/net/realtek-re-kmod

About

Personal NixOS files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published