46 lines
1.9 KiB
Nix
46 lines
1.9 KiB
Nix
# hosts/example/ — copy-me template for a new Omnixient host.
|
|
#
|
|
# Adopt in five steps:
|
|
# 1. cp -r hosts/example hosts/<yourhost>
|
|
# 2. Generate YOUR hardware scan (replaces the placeholder):
|
|
# sudo nixos-generate-config --show-hardware-config \
|
|
# > hosts/<yourhost>/hardware-configuration.nix
|
|
# 3. Add a host entry in flake.nix (copy the `example` block, rename it
|
|
# to <yourhost>). Add `devEnv = true;` only if you want the dev-env.
|
|
# 4. Fill in settings.nix (user, hostName, stateVersion, sshKeys, …).
|
|
# If your username differs from the template's, also create
|
|
# users/<youruser>/home-manager.nix (copy users/user/home-manager.nix).
|
|
# 5. sudo nixos-rebuild switch --flake .#<yourhost>
|
|
#
|
|
# Everything here is intentionally minimal — no maintainer-specific
|
|
# hardware modules, VPN tunnels, fwupd quirks, or dev-env. Add what you
|
|
# want through packs. See docs/getting-started.md and docs/packs.md.
|
|
{ lib, inputs, settings, ... }:
|
|
{
|
|
imports = [
|
|
# Your machine's hardware scan. The committed file is a PLACEHOLDER —
|
|
# replace it (step 2) before building on real hardware.
|
|
./hardware-configuration.nix
|
|
|
|
# Optional: a nixos-hardware module for your exact model, e.g.
|
|
# inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
|
# inputs.nixos-hardware.nixosModules.dell-xps-15-9520
|
|
# (full list: https://github.com/NixOS/nixos-hardware)
|
|
|
|
# Shared Omnixient base: system + Hyprland desktop + theming.
|
|
../../configuration.nix
|
|
|
|
# Optional: shared binary caches (substituters + trusted keys).
|
|
# ../../modules/cache.nix
|
|
];
|
|
|
|
# Opt into the goodies you want — see docs/packs.md for the full catalog.
|
|
omni.packs = {
|
|
development.enable = true;
|
|
media.enable = true;
|
|
containers.enable = true;
|
|
# gaming.enable = true;
|
|
# office.enable = true;
|
|
# bitcoin.enable = true; # needs an explicit import — see docs/packs.md
|
|
};
|
|
}
|