54 lines
1.7 KiB
Nix
54 lines
1.7 KiB
Nix
# Do NOT edit this file manually.
|
|
# Please use the dedicated script : https://gittea.dev/numbus/numbus.
|
|
# This could compromise system stability and is not supported by numbus.
|
|
|
|
{
|
|
inputs = {
|
|
# Core Nixpkgs
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
# Numbus server configuration
|
|
numbus-server.url = "git+https://git.numbus.eu/numbus/numbus-server";
|
|
numbus-server.inputs.nixpkgs.follows = "nixpkgs";
|
|
# Disk-partitioning helper
|
|
disko.url = "github:nix-community/disko";
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
# Secrets handling
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
# Power savings
|
|
autoaspm.url = "git+https://git.notthebe.ee/notthebee/AutoASPM";
|
|
autoaspm.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, numbus-server, disko, sops-nix, autoaspm, ... }@inputs: let
|
|
# System definition
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
numbus-server = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
# Numbus server configuration
|
|
numbus-server.nixosModules.numbus-server
|
|
# Disk-partitioning helper
|
|
disko.nixosModules.disko
|
|
# Secrets handling
|
|
sops-nix.nixosModules.sops
|
|
# Power savings
|
|
autoaspm.nixosModules.autoaspm
|
|
# Core host configuration
|
|
./hardware-configuration.nix
|
|
./numbus-generated.nix
|
|
./custom-configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|