101 lines
2.6 KiB
Nix
Executable file
101 lines
2.6 KiB
Nix
Executable file
{
|
|
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";
|
|
};
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, plasma-manager }:
|
|
let
|
|
localSystem = {
|
|
system = "x86_64-linux";
|
|
};
|
|
|
|
commonSpecialArgs = {
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
inherit (localSystem) system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
};
|
|
|
|
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
|
|
./systems/desktop.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
|
|
./servers/nginx.nix
|
|
./servers/forgejo.nix
|
|
];
|
|
};
|
|
skip = mkSystem {
|
|
modules = [
|
|
./systems/common.nix
|
|
./users/jsutter.nix
|
|
./systems/skip.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|