World of flakes, here I come.
  • Nix 92.2%
  • Shell 7.8%
Find a file
mrkesu 0f832288a5
🤷‍♂️
2026-06-20 23:37:58 +02:00
.forgejo/workflows prepare schedule 2026-06-10 15:32:08 +02:00
hosts 🤷‍♂️ 2026-06-20 23:37:58 +02:00
modules 🤷‍♂️ 2026-06-20 23:37:58 +02:00
.gitignore ignore nix build result symlinks 2026-06-10 16:11:29 +02:00
CHEATSHEET.md feat: yolo'd an AI generated flakes-cheatsheet (not proofread yet) 2026-06-10 19:46:11 +02:00
flake.lock testing a new browser since the LibreWolf maintainers seem to be struggling... 2026-06-19 16:08:16 +02:00
flake.nix testing hyprland again. LUA now, wow ok 2026-06-20 18:22:47 +02:00
README.md feat: add dotfiles section with link to work-config repository 2026-06-11 19:27:55 +02:00
rebuild feat: AI yolo'd helper script (not proof read yet) 2026-06-10 20:34:50 +02:00

nixos-config

My Nixos flake configs. Not much to say, for now it's fairly self explanatory if you know NixOS.

I have a terrible memory, day-to-day commands are in CHEATSHEET.md.

Reinstalling an existing host

  1. Install minimal NixOS, clone this repo and cd into it.

  2. Overwrite the host's hardware scan with the one the installer just generated (picks up any disk-layout changes, or new hardware):

    HOST=gammelerik
    cp /etc/nixos/hardware-configuration.nix hosts/$HOST/
    
  3. Build:

    ./rebuild switch $HOST
    
  4. Reboot, then commit if the hardware scan changed.

Adding a new host

  1. Install minimal NixOS, then clone this repo and cd into it.

  2. Copy the install's hardware scan and an existing host as a starting point:

    HOST=mynewbox
    mkdir -p hosts/$HOST
    cp /etc/nixos/hardware-configuration.nix hosts/$HOST/
    cp hosts/gammelerik/configuration.nix hosts/$HOST/configuration.nix
    

    Edit configuration.nix — at least set networking.hostName.

  3. Add a nixosConfigurations.$HOST entry in flake.nix with the modules you want (always common.nix, then desktop, sway, hyprland, virtualization etc. as needed).

  4. git add the new files (Nix ignores untracked files), then build:

    git add hosts/$HOST flake.nix
    ./rebuild switch $HOST
    
  5. Reboot, then commit.

Dotfiles

Go to https://code.kesu.no/mrkesu/work-config (private for now, TODO: public)