Skip to content

sk4rd/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-config

My NixOS configurations.

Hosts

  • desktop — GPU passthrough setup with native GPU boot specialisation
  • laptop
  • wsl

Structure

├── flake.nix
├── hosts/
│   ├── default.nix       # Nix settings, zsh
│   ├── common/           # Shared desktop+laptop config
│   ├── desktop/
│   ├── laptop/
│   └── wsl/
├── home/
│   ├── common/           # neovim, git, zsh, direnv
│   ├── miko/
│   └── wsl/
└── secrets/              # Encrypted with sops

Usage

sudo nixos-rebuild switch --flake .#<hostname>

Secrets

Managed with sops-nix. GPG (Yubikey) for editing, age (SSH host keys) for decryption.

# Edit secrets
sops secrets/secrets.yaml

# Add new machine
cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age
# Add key to .sops.yaml, then:
sops updatekeys secrets/secrets.yaml

About

My NixOS configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages