NixOS machine and Home Manager configurations using flakes.
| Hostname | Hardware | Description |
|---|---|---|
scope |
Framework 16 (AMD 7840HS + RX 7700S) | Primary laptop |
-
Boot from NixOS ISO (F12 at startup)
-
Connect to WiFi
sudo nmcli device wifi connect "SSID" password "PASSWORD"
-
Set LUKS password
echo "your-secure-password" > /tmp/disk-password
-
Partition with disko
sudo nix --experimental-features "nix-command flakes" run \ github:nix-community/disko -- \ --mode disko \ /tmp/config/infra/machines/laptop/disko-scope.nix -
Install NixOS
sudo nixos-install --flake /tmp/config#infra:laptop:scope
# NixOS system
sudo nixos-rebuild switch --flake .#infra:laptop:scope
# Home Manager
home-manager switch --flake .#users:hh:home:scope.
├── flake.nix # Main entry point
├── infra/machines/laptop/ # NixOS machine configs
│ ├── scope.nix # Framework 16 config
│ ├── disko-scope.nix # Disk partitioning
│ └── nixos-modules/ # Modular system configs
└── users/hh/ # User configurations
├── home/ # Home Manager configs
│ ├── machines/ # Per-machine home configs
│ ├── modules/ # Shared modules
│ └── themes/ # Color themes
└── keys/ # SSH public keys
-
dGPU Usage: Use
DRI_PRIME=1to run apps on the RX 7700SDRI_PRIME=1 steam # Or use the alias: dgpu steam -
Power Management: Uses
power-profiles-daemon(NOT TLP)powerprofilesctl list powerprofilesctl set balanced
Secrets are managed with sops-nix.
# Generate age key from SSH key
ssh-to-age -i ~/.ssh/id_ed25519.pub
# Edit secrets
sops infra/machines/laptop/secrets/scope.yaml




