Move programs.nix-ld out of the core aspect into modules/dev/nix-ld.nix and extend the library set (on top of the module defaults) with the runtime libraries that prebuilt binaries commonly link or dlopen: C++ runtime, compression and crypto, GL/Vulkan/Wayland, audio, fonts, GTK and Electron-style helpers, and the X11 client libraries. Enable programs.appimage with binfmt so .AppImage files run directly through appimage-run. Import the aspect from the desktop host and document it in the README. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JZ16yf4acmaSiHq81vyQ6Z
71 lines
1.9 KiB
Nix
71 lines
1.9 KiB
Nix
# desktop: AMD CPU + AMD GPU workstation/gaming PC. Which aspects it runs, plus
|
|
# the few values that belong to this machine only. Hardware: hardware.nix,
|
|
# disks: disks.nix. install-system writes hosts/desktop/disk-ids.json and
|
|
# hosts/desktop/hardware-configuration.nix at the repository root.
|
|
{ config, ... }:
|
|
let
|
|
inherit (config.meta) owner;
|
|
nixos = config.flake.modules.nixos;
|
|
hm = config.flake.modules.homeManager;
|
|
in
|
|
{
|
|
configurations.nixos.desktop.module = {
|
|
# Aspects with a home-manager half (hyprland, noctalia, ssh, theme) add it
|
|
# to the owner themselves.
|
|
imports = with nixos; [
|
|
core
|
|
secure-boot
|
|
amd
|
|
ssh
|
|
secrets
|
|
hyprland
|
|
noctalia
|
|
audio
|
|
fonts
|
|
theme
|
|
gaming
|
|
vpn
|
|
proxy-suite
|
|
docker
|
|
gitea-runner
|
|
nix-ld
|
|
];
|
|
|
|
# The owner's own programs (home-manager only). A dynamic attribute such
|
|
# as `${owner.name}` may appear only once per attribute set, so everything
|
|
# for the owner's home-manager configuration sits in this one block.
|
|
home-manager.users.${owner.name} = {
|
|
imports = with hm; [
|
|
shell
|
|
git
|
|
neovim
|
|
wezterm
|
|
xdg
|
|
apps
|
|
claude-code
|
|
];
|
|
|
|
# Set once at install time; do not change on upgrades.
|
|
home.stateVersion = "26.05";
|
|
};
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
time.timeZone = "Europe/Moscow";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
# XKB layouts in switching order. The console follows them
|
|
# (core/locale.nix) and so does Hyprland (desktop/hyprland, via osConfig).
|
|
services.xserver.xkb = {
|
|
layout = "us,ru";
|
|
options = "grp:alt_shift_toggle";
|
|
};
|
|
|
|
# No packet filter on this machine.
|
|
networking.firewall.enable = false;
|
|
|
|
# Set once at install time; do not change on upgrades.
|
|
system.stateVersion = "26.05";
|
|
};
|
|
}
|