40 lines
939 B
Nix
40 lines
939 B
Nix
{
|
|
description = "Hoardfrost multipurpose server";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = {self, nixpkgs, home-manager, ...}@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
timezone = "America/Denver";
|
|
locale = "en_US.UTF-8";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
inherit system;
|
|
inherit timezone;
|
|
inherit locale;
|
|
};
|
|
in {
|
|
|
|
homeConfigurations.autumn = home-manager.lib.homeManagerConfiguration{
|
|
extraSpecialArgs = specialArgs;
|
|
pkgs = pkgs;
|
|
modules = [
|
|
./home.nix
|
|
];
|
|
};
|
|
nixosConfigurations.hoardfrost = nixpkgs.lib.nixosSystem{
|
|
system = system;
|
|
specialArgs = specialArgs;
|
|
modules = [
|
|
./configuration.nix
|
|
];
|
|
};
|
|
};
|
|
}
|