- Add new NixOS configuration for 'warp' server - Configure for Intel NUC 13th gen CPU platform - Disable desktop environment (headless server) - Enable SSH with security hardening (no password auth, no root login) - Configure Docker and Podman for containerized workloads - Add performance tuning for network and memory buffers - Include 8GB swap file configuration - Enable Intel IOMMU for virtualization support - Add thermal monitoring and power management
93 lines
2.4 KiB
Nix
93 lines
2.4 KiB
Nix
{
|
|
description = "Julian's system configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-25.11";
|
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
plasma-manager = {
|
|
url = "github:nix-community/plasma-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.home-manager.follows = "home-manager";
|
|
};
|
|
|
|
octofriend = { url = "path:./appflakes/octofriend"; };
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, plasma-manager, octofriend }:
|
|
let
|
|
localSystem = {
|
|
system = "x86_64-linux";
|
|
};
|
|
|
|
commonSpecialArgs = {
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
inherit (localSystem) system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
inherit octofriend;
|
|
};
|
|
|
|
mkSystem = { modules, hardware ? [] }: nixpkgs.lib.nixosSystem {
|
|
inherit (localSystem) system;
|
|
specialArgs = commonSpecialArgs;
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
] ++ hardware ++ modules;
|
|
};
|
|
# Common desktop modules
|
|
commonDesktopModules = [
|
|
./systems/common.nix
|
|
./users/jsutter.nix
|
|
./desktop/plasma.nix
|
|
./desktop/dev.nix
|
|
./desktop/office.nix
|
|
./desktop/gaming.nix
|
|
./desktop/media.nix
|
|
./desktop/virtualization.nix
|
|
./desktop/tailscale.nix
|
|
];
|
|
|
|
in {
|
|
nixosConfigurations = {
|
|
framework = mkSystem {
|
|
hardware = [ nixos-hardware.nixosModules.framework-amd-ai-300-series ];
|
|
modules = commonDesktopModules ++ [
|
|
./systems/framework.nix
|
|
./desktop/dnm.nix
|
|
./desktop/stp-elc-udmshare.nix
|
|
];
|
|
};
|
|
aurora = mkSystem {
|
|
modules = commonDesktopModules ++ [
|
|
./systems/aurora.nix
|
|
./users/isutter.nix
|
|
./users/aksutter.nix
|
|
./desktop/3dprinting.nix
|
|
./desktop/2dprinting.nix
|
|
];
|
|
};
|
|
labrizor = mkSystem {
|
|
modules = commonDesktopModules ++ [
|
|
./systems/labrizor.nix
|
|
./users/jsutter.nix
|
|
./desktop/3dprinting.nix
|
|
];
|
|
};
|
|
warp = mkSystem {
|
|
modules = [
|
|
./systems/common.nix
|
|
./users/jsutter.nix
|
|
./systems/warp.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|