Manage T450s, X1EG2 and Framework 13 from pinned NixOS inputs while retaining machine-specific storage and hardware configuration. Changes: Shared Configuration: - Extract common, KDE, desktop, development and Steam modules - Share Emacs, VS Code, htop, DevOps tools and Docker across hosts - Remove obsolete apps and global project language runtimes Framework: - Import the 11th-generation Intel hardware profile - Enable Steam and ZFS with tookland/home mounted at /home - Document manual ext4 root and ZFS installation steps - Require installer-generated hardware configuration before installation Validation: - Evaluate both ThinkPads and Framework with test hardware - Check Nix syntax, formatting and whitespace
72 lines
1.6 KiB
Nix
72 lines
1.6 KiB
Nix
{ pkgs, unstable, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules/common.nix
|
|
../../modules/kde.nix
|
|
../../modules/development.nix
|
|
../../modules/desktop-apps.nix
|
|
../../modules/gaming.nix
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.initrd.secrets = {
|
|
"/crypto_keyfile.bin" = null;
|
|
};
|
|
|
|
boot.initrd.luks.devices."luks-a9814d3c-ecfc-4aae-a5a9-976a55af4609".device =
|
|
"/dev/disk/by-uuid/a9814d3c-ecfc-4aae-a5a9-976a55af4609";
|
|
boot.initrd.luks.devices."luks-a9814d3c-ecfc-4aae-a5a9-976a55af4609".keyFile =
|
|
"/crypto_keyfile.bin";
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
boot.zfs.forceImportRoot = false;
|
|
networking.hostId = "561bd410";
|
|
|
|
boot.binfmt.registrations.appimage = {
|
|
wrapInterpreterInShell = false;
|
|
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
|
recognitionType = "magic";
|
|
offset = 0;
|
|
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
|
magicOrExtension = ''\x7fELF....AI\x02'';
|
|
};
|
|
|
|
networking.hostName = "samwise";
|
|
|
|
services.printing.drivers = [
|
|
pkgs.hplipWithPlugin
|
|
pkgs.cnijfilter2
|
|
];
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
hardware.sane.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
unstable.android-studio
|
|
unstable.anytype
|
|
unstable.easyeffects
|
|
unstable.element-desktop
|
|
ffmpeg
|
|
kdePackages.kcalc
|
|
mailspring
|
|
unstable.nextcloud-client
|
|
unstable.onedrive
|
|
postman
|
|
unstable.threema-desktop
|
|
unstable.vcmi
|
|
wine
|
|
unstable.zoom-us
|
|
];
|
|
|
|
services.openssh.enable = true;
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|