HermitCollective.nix/flake.nix

53 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2024-03-06 09:25:15 +00:00
{
description = "The Nix flake configuration for HermitCollectivePRIME";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
comin = {
url = "github:nlewo/comin";
inputs.nixpkgs.follows = "nixpkgs";
};
iceshrimp = {
url = "git+https://iceshrimp.dev/iceshrimp/packaging";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
comin,
iceshrimp,
...
}@inputs:
let
system = "x86_64-linux";
currentSystem = system;
pkgs = import nixpkgs {
inherit system;
};
lib = nixpkgs.lib;
in {
# Server NixOS configuration
nixosConfigurations = {
default = lib.nixosSystem {
inherit system;
modules = [
comin.nixosModules.comin
iceshrimp.nixosModules.iceshrimp
./services # NOTE: many services are to be revamped or moved to the secondary server when complete
./sites
./system
./users
];
specialArgs = {
inputs = inputs;
inherit system;
};
};
};
};
}