Laptop, desktop, and home lab flake featuring Hyprland, Sway, declarative containers, a reverse proxy, and more.
Find a file
Aly Raffauf c7a6cd8773
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 / emudeck-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 / 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: update inputs (#187)
* flake.lock: Update

Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/341482e2f4d888e3f60cae1c12c3df896e7230d8?narHash=sha256-i%2BUw8VOHzQe9YdNwKRbzvaPWLE07tYVqUDzSFTXhRgk%3D' (2024-11-27)
  → 'github:nix-community/disko/2814a5224a47ca19e858e027f7e8bff74a8ea9f1?narHash=sha256-2uMaVAZn7fiyTUGhKgleuLYe5%2BEAAYB/diKxrM7g3as%3D' (2024-11-30)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2f7739d01080feb4549524e8f6927669b61c6ee3?narHash=sha256-6TrknJ8CpvSSF4gviQSeD%2Bwyj3siRcMvdBKhOXkEMKU%3D' (2024-11-28)
  → 'github:nix-community/home-manager/819f682269f4e002884702b87e445c82840c68f2?narHash=sha256-r8j6R3nrvwbT1aUp4EPQ1KC7gm0pu9VcV1aNaB%2BXG6Q%3D' (2024-11-29)
• Updated input 'nix-gaming':
    'github:fufexan/nix-gaming/effe1d54e23f430d3e803f63e9e47aba33acfb63?narHash=sha256-divlhUduT0/t8D9k11Yd3Ah3xpr302vV1KXxIMb8I3M%3D' (2024-11-28)
  → 'github:fufexan/nix-gaming/59363ec701ee3e994a6c8afc88b61d1fab40c66a?narHash=sha256-RIvcgs8yGix6g6694omcGpvAza5LxZfV5LmyXsw8c0I%3D' (2024-12-01)
• Updated input 'nix-gaming/umu':
    'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=f6a6af3191f5497d95d8f8aaa08826a45da199c4&submodules=1' (2024-11-23)
  → 'git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&ref=refs/heads/main&rev=3277b47c9f87ecf736e1df7ed65cc0e25466f9b2&submodules=1' (2024-11-29)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/4633a7c72337ea8fd23a4f2ba3972865e3ec685d?narHash=sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0%3D' (2024-11-25)
  → 'github:nixos/nixpkgs/970e93b9f82e2a0f3675757eb0bfc73297cc6370?narHash=sha256-jNRNr49UiuIwaarqijgdTR2qLPifxsVhlJrKzQ8XUIE%3D' (2024-11-28)
• Updated input 'nur':
    'github:nix-community/NUR/cc2a3158b6a714b98a8b891d6dcfc3a43039051f?narHash=sha256-ZliP697Djpq%2BJM4MuO6kvj5RWjCdg39ZQ2moFoqFbdE%3D' (2024-11-29)
  → 'github:nix-community/NUR/bddf3b72b641f9116c770ea5115d192f27c48f91?narHash=sha256-alQFJwNHVkXrZEkxQ6lK/pybjjJ3q4sYniXhsJphBnM%3D' (2024-12-01)
• Updated input 'stylix':
    'github:danth/stylix/7689e621f87bce7b6ab1925dfd70ad1f4c80f334?narHash=sha256-T5k5ill%2BPNIEW6KuS4CpUacMtZNJe2J2q5eBOF4xWuU%3D' (2024-11-26)
  → 'github:danth/stylix/d13ffb381c83b6139b9d67feff7addf18f8408fe?narHash=sha256-t1J6wgzGjvvGNfdd0ei8HnZf9sTw%2BSpvCNAX0i6Qgwc%3D' (2024-11-30)

* tree-wide: migrate nerdfonts to new nerd-fonts namespace

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-01 12:53:28 -05:00
.github/workflows pkgs: add emudeck (#177) 2024-11-25 08:26:11 -05: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 hypridle: fixed syntax error in suspend timeout 2024-11-27 07:48:50 -05:00
homes dustin: use libreoffice-still 2024-11-26 14:45:49 -05:00
hosts flake: update inputs (#187) 2024-12-01 12:53:28 -05:00
hwModules hw/asus/a16: add asusd config and fan control 2024-11-29 16:56:03 -05:00
nixosModules nixosModules: init apps.emudeck 2024-11-29 21:55:58 -05:00
overlays pkgs: add emudeck (#177) 2024-11-25 08:26:11 -05:00
pkgs emudeck: fixup install scripts 2024-11-29 21:55:40 -05:00
secrets secrets: add aly_petalburg pub key 2024-11-26 09:19:40 -05:00
userModules aly: auth with aly@petalburg ssh key 2024-11-29 21:05:05 -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: update inputs (#187) 2024-12-01 12:53:28 -05:00
flake.nix pkgs: add emudeck (#177) 2024-11-25 08:26:11 -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