Laptop, desktop, and home lab flake featuring Hyprland, Sway, declarative containers, a reverse proxy, and more.
Find a file
github-actions[bot] bc93863db0
Some checks are pending
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / hhd-ui-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
flake.lock: Update
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/cb64993826fa7a477490be6ccb38ba1fa1e18fa8?narHash=sha256-f3SSp1axoOk0NAI7oFdRzbxG2XPBSIXC%2B/DaAXnvS1A%3D' (2024-11-16)
  → 'github:nix-community/disko/47bc8dfb6f48d5f66a3cb3a4cece83d8ace1f61a?narHash=sha256-B1MQLiWi4bbeNiRXKxEkpztnKyWae4x0LyK32v3DjLk%3D' (2024-11-24)
• Updated input 'home-manager':
    'github:nix-community/home-manager/f8831cc700030e11fc91da9ef6270593e6440edc?narHash=sha256-wpmPl6FkAF9Jj5C/rzANgpUjfzQrUYOn267LnzKU2uI%3D' (2024-11-22)
  → 'github:nix-community/home-manager/f3111f62a23451114433888902a55cf0692b408d?narHash=sha256-T1e5oceypZu3Q8vzICjv1X/sGs9XfJRMW5OuXHgpB3c%3D' (2024-11-24)
• Updated input 'nix-gaming':
    'github:fufexan/nix-gaming/88cd24b3ea7301116fd5919f886e58d31c006ad3?narHash=sha256-l73nJDTaOzV8rIg/IFlkK5ya3F7/tPLI5HnQGzt4FCE%3D' (2024-11-17)
  → 'github:fufexan/nix-gaming/87623b5ebb18d3ab6c342526afe6b7d0cb96c486?narHash=sha256-LJy3CkUErelRM3bDojyFB0xe4c2CF/6HTF51QLJkqVA%3D' (2024-11-24)
• Updated input 'nix-gaming/umu':
    'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=66a1088194bb13c2d86d2c0af316b280a7235640&submodules=1' (2024-11-14)
  → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=f6a6af3191f5497d95d8f8aaa08826a45da199c4&submodules=1' (2024-11-23)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/057f63b6dc1a2c67301286152eb5af20747a9cb4?narHash=sha256-v5P3dk5JdiT%2B4x69ZaB18B8%2BRcu3TIOrcdG4uEX7WZ8%3D' (2024-11-16)
  → 'github:nixos/nixpkgs/0c582677378f2d9ffcb01490af2f2c678dcb29d3?narHash=sha256-GcOQbOgmwlsRhpLGSwZJwLbo3pu9ochMETuRSS1xpz4%3D' (2024-11-23)
• Updated input 'nur':
    'github:nix-community/NUR/ac3ca33bee0460cd09d79288aada1f29e6f6aacf?narHash=sha256-E3QBnpoTVvKY8HZH99qIxRfoSgvJQuo5GbA8Tsmt2es%3D' (2024-11-17)
  → 'github:nix-community/NUR/c2c1dbe8b2082709579b745a0d2a6e2680d31065?narHash=sha256-tGKuWAALWv4asotsESZLRUpk1u5NI8f4%2BNWesEosGMQ%3D' (2024-11-25)
• Updated input 'stylix':
    'github:danth/stylix/9b61cc39b2c82f01b63bb0ae85865d7372697fc4?narHash=sha256-71iRk7zLR%2Br9urKPEoutLqPm3Tex6gLbZyWPI4VoHIs%3D' (2024-11-17)
  → 'github:danth/stylix/b667a340730dd3d0596083aa7c949eef01367c62?narHash=sha256-8uTKUHkaU980J5kRnLYrdwmjZYB88eBGUk1oVgIUHFE%3D' (2024-11-22)
• Updated input 'stylix/base16':
    'github:SenchoPens/base16.nix/665b3c6748534eb766c777298721cece9453fdae?narHash=sha256-LlrC09LoPi8OPYOGPXegD72v%2B//VapgAqhbOFS3i8sc%3D' (2024-02-25)
  → 'github:SenchoPens/base16.nix/153d52373b0fb2d343592871009a286ec8837aec?narHash=sha256-%2BR1BH5wHhfnycySb7Sy5KbYEaTJZWm1h%2BLW1OtyhiTs%3D' (2024-11-21)
• Updated input 'stylix/base16/fromYaml':
    'github:SenchoPens/fromYaml/11fbbbfb32e3289d3c631e0134a23854e7865c84?narHash=sha256-iX0pk/uB019TdBGlaJEWvBCfydT6sRq%2BeDcGPifVsCM%3D' (2023-07-16)
  → 'github:SenchoPens/fromYaml/106af9e2f715e2d828df706c386a685698f3223b?narHash=sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8%3D' (2024-11-18)
2024-11-25 03:24:03 +00:00
.github/workflows flake: onboard petalburg (#174) 2024-11-24 20:36:31 -05:00
_img README.md: update features and screenshots 2024-08-15 20:46:05 -04:00
common base: set $FLAKE to release-24.11 branch 2024-11-23 19:56:59 -05:00
disko reuse disko configs where possible 2024-09-23 23:59:07 -04:00
flake clean-install: prompt for host 2024-07-17 11:07:29 -04:00
homeManagerModules hyprland: add hyprspace plugin 2024-11-24 09:08:02 -05:00
homes aly/firefox: update bookmarks 2024-11-14 11:41:17 -05:00
hosts petalburg: set scaling to 1.0 2024-11-24 21:20:21 -05:00
hwModules hw/laptop: remove libcamera workaround 2024-11-24 20:38:54 -05:00
nixosModules desktop: add pam rules for hyprlock 2024-11-22 15:16:48 -05:00
overlays pkgs: add rofi-bluetooth (#133) 2024-10-19 15:25:56 -04:00
pkgs hhd-ui: bump version 3.2.2 -> 3.2.3 2024-10-27 16:44:11 -04:00
secrets flake: onboard petalburg (#174) 2024-11-24 20:36:31 -05:00
userModules syncthing: add roms folder; update pacifidlog id 2024-11-18 11:56:02 -05:00
.envrc flake: add devShelland direnv 2024-09-05 22:41:27 -04:00
.gitignore flake: add devShelland direnv 2024-09-05 22:41:27 -04:00
.gitlab-ci.yml code cleanup (#47) 2024-07-18 21:05:35 -04:00
flake.lock flake.lock: Update 2024-11-25 03:24:03 +00:00
flake.nix flake: onboard petalburg (#174) 2024-11-24 20:36:31 -05:00
LICENSE.md hosts: add READMEs (#50) 2024-07-20 19:41:51 -04:00
README.md README: update outputs 2024-10-19 15:09:06 -04:00

nixcfg

My comprehensive NixOS flake for managing my laptop, desktop, gaming handheld, and home lab environments.

Features

  • Hyprland: Dynamic tiling Wayland compositor and window manager.
  • SteamOS UI: Steam Big Picture Mode + gaming optimizations for Lenovo Legion Go.
  • Stylix: Auto-gnerated base16 themes for the whole desktop.
  • Encryption: Encrypted boot drives with Secure Boot and LUKS with TPM decryption.
  • Home Lab: Media, file sharing, and more, split between two PCs with efficient routing via reverse proxy.

Inputs

This flake takes a variety of upstream and third party flakes as inputs:

  • agenix: secrets storage and orchestration.
  • disko: declarative partitions and disk configuration.
  • home-manager: declarative dotfile and user package management.
  • hyprland: great dynamic tiling wayland compositor.
  • iio-hyprland: autorotate daemon for Hyprland.
  • jovian: steam deck UI + optimizations.
  • lanzaboote: secure boot for NixOS.
  • nur: extra packages from the nix user repository.
  • stylix: system-wide color schemes and typography.
  • sway: fantastic, rock-solid tiling compositor for wayland.

Outputs

  • homeManagerModules.aly: my home-manager config.
  • homeManagerModules.default: app modules + everything you need for a competent Hyprland desktop (and a few others).
  • homeManagerModules.dustin: my husband's home-manager config.
  • nixosModules.common: various common modules specific to my hosts.
  • nixosModules.nixos: opinionated desktop, app, and service options.
  • nixosModules.users: basic user configuration options.
  • overlays.default: adds every package output to nixpkgs.
  • overlays.rofi-bluetooth: overlays rofi-bluetooth with custom patches.
  • overlays.tablet: tablet optimizations, mainly for electron apps.

In addition, this flake outputs NixOS configurations, home-manager configurations, and various hardware modules for all of my hosts and users.

Deploying to NixOS

Each hardware configuration is host-specific. If you fork this repository, add a host configuration for your own hardware. Secrets are encrypted with agenix and will not be available without the private decryption keys.

Enabling Flakes

While widely used and considered stable, flakes are still considered experimental. To enable Flakes, add the following lines to your configuration.nix and rebuild.

nix.settings.experimental-features = [ "nix-command" "flakes" ];

Alternatively, pass --experimental-features "nix-command flakes" to nix to temporarily use flakes.

Building Flake

In order to deploy this Flake on your host, run the following command:

sudo nixos-rebuild boot --flake github:alyraffauf/nixcfg#$HOSTNAME

Substitute $HOSTNAME for whichever hostname you have chosen. Reboot to apply the flake's configuration for the chosen host.

Installing from Live USB

If you want to install NixOS from this flake, run the following commands, ideally from a NixOS live environment, providing the hostname associated with a NixOS configuration specified in flake.nix when prompted.

sudo nix --experimental-features "nix-command flakes" run github:alyraffauf/nixcfg