Files
server-configuration/flake.nix
2025-08-28 05:09:43 +00:00

58 lines
1.4 KiB
Nix
Executable File

{
description = "server flake";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
noshell.url = "github:viperML/noshell";
spacebar-server.url = "github:spacebarchat/server";
blog.url = "git+https://git.mtgmonkey.net/Andromeda/blog.git";
jank-client.url = "git+https://git.mtgmonkey.net/Andromeda/jank-client-fork.git";
math-project.url = "git+https://git.mtgmonkey.net/Andromeda/math-project.git";
};
outputs = {
self,
nixpkgs,
noshell,
spacebar-server,
jank-client,
math-project,
blog,
...
}: let
system = "x86_64-linux";
in {
nixosConfigurations."server" = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit self;
inherit system;
inherit spacebar-server;
inherit math-project;
inherit blog;
ssh-pub-keys = import ./ssh-pub-keys.nix;
};
modules = [
./configuration.nix
./services/blog.nix
./services/elmskell.nix
./services/ferron.nix
./services/gitea.nix
# ./services/rgit.nix
./services/math-project.nix
./services/spacebar.nix
./services/translate.nix
jank-client.nixosModules.x86_64-linux.default
math-project.nixosModules.x86_64-linux.default
noshell.nixosModules.default
{
programs.noshell.enable = true;
services.math-project.enable = true;
}
];
};
};
}