49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{
|
|
inputs = {
|
|
# Core Nixpkgs
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
# Numbus server configuration
|
|
numbus.url = "git+https://gittea.dev/numbus/numbus-tv";
|
|
numbus.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, 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.nixosModules.numbus
|
|
# Disk-partitioning helper
|
|
disko.nixosModules.disko
|
|
# Secrets handling
|
|
sops-nix.nixosModules.sops
|
|
# Power savings
|
|
autoaspm.nixosModules.autoaspm
|
|
# Core host configuration
|
|
./configuration.nix
|
|
./hardware-configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|