fermi/flake.nix

51 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2024-11-30 20:44:50 +01:00
{
2024-12-01 03:34:59 +01:00
description = "hpc club darknet cluster";
2024-11-30 20:44:50 +01:00
inputs.clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
2024-12-01 03:34:59 +01:00
inputs.nixpkgs.follows = "clan-core/nixpkgs";
2024-11-30 20:44:50 +01:00
outputs = { self,
clan-core,
... }@inputs:
let
2024-12-01 03:34:59 +01:00
inherit (clan-core.inputs) nixpkgs;
# https://docs.clan.lol
2024-11-30 20:44:50 +01:00
clan = clan-core.lib.buildClan {
directory = self;
2024-12-01 03:34:59 +01:00
meta.name = "ntnu-hpc-fermi";
2024-11-30 20:44:50 +01:00
# 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 = { };
2024-12-01 03:34:59 +01:00
/* balleby = { }; */
/* baltazar = { }; */
/* bergtor = { }; */
/* buster = { }; */
2024-11-30 20:44:50 +01:00
};
};
in
{
2024-12-01 03:34:59 +01:00
inherit inputs;
2024-11-30 20:44:50 +01:00
inherit (clan) nixosConfigurations clanInternals;
2024-12-01 03:34:59 +01:00
2024-11-30 20:44:50 +01:00
devShells =
2024-12-01 03:34:59 +01:00
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
2024-11-30 20:44:50 +01:00
(system: {
2024-12-01 03:34:59 +01:00
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
];
2024-11-30 20:44:50 +01:00
};
});
};
}