Skip to content
View hh's full-sized avatar

Organizations

@ii @ii-cookbooks @easybake @easybake-ingredients @instantinfrastructure @vulk

Block or report hh

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
hh/README.md

hh's NixOS Configuration

NixOS machine and Home Manager configurations using flakes.

Machines

Hostname Hardware Description
scope Framework 16 (AMD 7840HS + RX 7700S) Primary laptop

Quick Start

Fresh Install on Framework 16

  1. Boot from NixOS ISO (F12 at startup)

  2. Connect to WiFi

    sudo nmcli device wifi connect "SSID" password "PASSWORD"
  3. Set LUKS password

    echo "your-secure-password" > /tmp/disk-password
  4. 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
  5. Install NixOS

    sudo nixos-install --flake /tmp/config#infra:laptop:scope

Updating an Existing System

# NixOS system
sudo nixos-rebuild switch --flake .#infra:laptop:scope

# Home Manager
home-manager switch --flake .#users:hh:home:scope

Structure

.
├── 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

Framework 16 Notes

  • dGPU Usage: Use DRI_PRIME=1 to run apps on the RX 7700S

    DRI_PRIME=1 steam
    # Or use the alias:
    dgpu steam
  • Power Management: Uses power-profiles-daemon (NOT TLP)

    powerprofilesctl list
    powerprofilesctl set balanced

Secrets

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

Popular repositories Loading

  1. windows-fromscratch windows-fromscratch Public

    Windows Vagrant VM from scratch

    Ruby 93 21

  2. vbox-unattended vbox-unattended Public

    Unattended Guest OS Install - vbox-unattended

    Python 7 1

  3. veewee veewee Public

    Forked from jedi4ever/veewee

    Easing the building of vagrant boxes

    Ruby 5 1

  4. em-winrm em-winrm Public

    Forked from chef-boneyard/em-winrm

    EventMachine based, asynchronous parallel client for Windows Remote Management (WinRM).

    Ruby 5 2

  5. cloud-kitchen cloud-kitchen Public

    A chef-repo to create a cloud provisioner that has local lxc, openstack, and virtualbox for testing

    Ruby 5 2

  6. iPoc iPoc Public

    iOS Proof of Concept Application

    4