fermi/flake.nix

51 lines
1.5 KiB
Nix

{
description = "hpc club darknet cluster";
inputs.clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
inputs.nixpkgs.follows = "clan-core/nixpkgs";
outputs = { self,
clan-core,
... }@inputs:
let
inherit (clan-core.inputs) nixpkgs;
# https://docs.clan.lol
clan = clan-core.lib.buildClan {
directory = self;
meta.name = "ntnu-hpc-fermi";
# Prerequisite: boot into the installer.
# See: https://docs.clan.lol/getting-started/installer
# local> mkdir -p ./machines/machine1
# local> Edit ./machines/<machine>/configuration.nix to your liking.
machines = {
# The name will be used as hostname by default.
bingus = { };
/* balleby = { }; */
/* baltazar = { }; */
/* bergtor = { }; */
/* buster = { }; */
};
};
in
{
inherit inputs;
inherit (clan) nixosConfigurations clanInternals;
devShells =
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
(system: {
default = nixpkgs.legacyPackages.${system}.mkShell {
packages = [
clan-core.packages.${system}.clan-cli
nixpkgs.legacyPackages.${system}.sops
nixpkgs.legacyPackages.${system}.just
nixpkgs.legacyPackages.${system}.jq
nixpkgs.legacyPackages.${system}.gum
];
};
});
};
}