Laptop, desktop, and home lab flake featuring Hyprland, Sway, declarative containers, a reverse proxy, and more.
Find a file
Aly Raffauf fc532e5e29
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
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 / pacifidlog-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 (#154)
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/3979285062d6781525cded0f6c4ff92e71376b55?narHash=sha256-o5m5WzvY6cGIDupuOvjgNSS8AN6yP2iI9MtUC6q/uos%3D' (2024-10-29)
  → 'github:nix-community/disko/856a2902156ba304efebd4c1096dbf7465569454?narHash=sha256-sdY29RWz0S7VbaoTwSy6RummdHKf0wUTaBlqPxrtvmQ%3D' (2024-11-04)
• Updated input 'home-manager':
    'github:nix-community/home-manager/8ca921e5a806b5b6171add542defe7bdac79d189?narHash=sha256-0AfApF8aexgB6o34qqLW2cCX4LaWJajBVdU6ddiWZBM%3D' (2024-11-01)
  → 'github:nix-community/home-manager/2f607e07f3ac7e53541120536708e824acccfaa8?narHash=sha256-0kZL4m%2BbKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc%3D' (2024-11-05)
• Updated input 'jovian':
    'github:Jovian-Experiments/Jovian-NixOS/bd1da5657b8903b293a0ff51eb896a91a544ebed?narHash=sha256-xmZQFGeIm2TzXv4jGaQ3nfBoUbt4gKbIv/SHVWw93ag%3D' (2024-11-01)
  → 'github:Jovian-Experiments/Jovian-NixOS/84da0883c26098a343b3056c025943d991d1c7f5?narHash=sha256-c9N34iMGlYvIhEDGEzidYoua/nJCjtXI0Sf/ZYtY4Ds%3D' (2024-11-06)
• Updated input 'nix-gaming':
    'github:fufexan/nix-gaming/bcc7c896b56ccd644ca2daea74dac05c1731f59d?narHash=sha256-dfxO6mkn1KkotGQXV93m/2MoS9ayLUwaIIbR3mReLd0%3D' (2024-11-01)
  → 'github:fufexan/nix-gaming/0c25376479d11073346ed22de8571805543ede71?narHash=sha256-UHm56cW/04efHY4NgboGFOXliGQCqRRY%2Bl1HM7c8/Ms%3D' (2024-11-05)
• Updated input 'nix-gaming/flake-parts':
    'github:hercules-ci/flake-parts/3d04084d54bedc3d6b8b736c70ef449225c361b1?narHash=sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0%3D' (2024-10-01)
  → 'github:hercules-ci/flake-parts/506278e768c2a08bec68eb62932193e341f55c90?narHash=sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS%2Bb4tfNFCwE%3D' (2024-11-01)
• Updated input 'nix-gaming/flake-parts/nixpkgs-lib':
    'fb192fec7c.tar.gz?narHash=sha256-0xHYkMkeLVQAMa7gvkddbPqpxph%2BhDzdu1XdGPJR%2BOs%3D' (2024-10-01)
  → 'cc2f280002.tar.gz?narHash=sha256-lXvH/vOfb4aGYyvFmZK/HlsNsr/0CVWlwYvo2rxJk3s%3D' (2024-11-01)
• Updated input 'nix-gaming/umu':
    'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=72499f349ca81cb2838eced9d7c465b2cf71c4a2&submodules=1' (2024-10-26)
  → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=70645c290dfc6ed10282bf4d2ae38c0bf7b1a3fb&submodules=1' (2024-11-02)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/2768c7d042a37de65bb1b5b3268fc987e534c49d?narHash=sha256-AlcmCXJZPIlO5dmFzV3V2XF6x/OpNWUV8Y/FMPGd8Z4%3D' (2024-10-23)
  → 'github:nixos/nixpkgs/4aa36568d413aca0ea84a1684d2d46f55dbabad7?narHash=sha256-Zwl8YgTVJTEum%2BL%2B0zVAWvXAGbWAuXHax3KzuejaDyo%3D' (2024-11-05)
• Updated input 'nur':
    'github:nix-community/NUR/0cec4b96fa9a9f3b348439ede1fd5ef46593b966?narHash=sha256-J8dDwKgRXrS6Jfija3Fu/UhsjtESq7LVc6rSd3TCRzc%3D' (2024-11-01)
  → 'github:nix-community/NUR/51420b39807738ce2e8c43f034c35cd6bc920076?narHash=sha256-QSy8CAkCkDImoLEyICxXtPW9N4rSC9QXcPE83OLXc1c%3D' (2024-11-06)
• Updated input 'stylix':
    'github:danth/stylix/04afcfc0684d9bbb24bb1dc77afda7c1843ec93b?narHash=sha256-uGjTjvvlGQfQ0yypVP%2Bat0NizI2nrb6kz4wGAqzRGbY%3D' (2024-10-26)
  → 'github:danth/stylix/762c07ee10b381bc8e085be5b6c2ec43139f13b0?narHash=sha256-tGvmW0qih%2BdCAH9L4BEMYMiHcBoJVZtESbC9WH0EEuw%3D' (2024-11-06)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-06 18:48:06 -05:00
.github/workflows github: build packages every push 2024-10-19 15:29:13 -04:00
_img README.md: update features and screenshots 2024-08-15 20:46:05 -04:00
common wifi: replace wallace with norman 2024-10-23 13:52:25 -04: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 gnome: add ash to dock and remove broken extensions 2024-10-29 15:53:21 -04:00
homes aly: don't install betterbird, dropped by upstream nixpkgs 2024-11-04 12:02:57 -05:00
hosts pacifidlog: expand documentation 2024-10-27 10:25:40 -04:00
hwModules hwModules: integrate legion go improvements (#138) 2024-10-20 17:29:15 -04:00
nixosModules gnome: follow upstream gnome.gnome-settings-daemon -> gnome-settings-daemon 2024-10-28 19:41:13 -04: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 wifi: replace wallace with norman 2024-10-23 13:52:25 -04:00
userModules tree-wide: drop petalburg (#129) 2024-10-18 15:44:19 -04: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 (#154) 2024-11-06 18:48:06 -05:00
flake.nix hwModules: integrate legion go improvements (#138) 2024-10-20 17:29:15 -04: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