The raccoon workstation has a Nvidia GTX 960 GPU which will be used for CUDA experiments. The configuration uses the production Nvidia driver at version 550 which still supports the GPU. The current CUDA 12.2 version is also supported by the driver. The workstation has Internet access directly from the gateway, but name resolution via Google DNS servers seems to be blocked, so we use BSC servers for now. The NixOS system is installed in a partition alongside the old Debian system, until we decide that is no longer neccesary to keep both. The old /home partition is not used as we are using the same UIDs and groups from the xeon machines, which don't match the ones here.
36 lines
1020 B
Nix
36 lines
1020 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
agenix.url = "github:ryantm/agenix";
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
bscpkgs.url = "git+https://git.sr.ht/~rodarima/bscpkgs";
|
|
bscpkgs.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, agenix, bscpkgs, ... }:
|
|
let
|
|
mkConf = name: nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit nixpkgs bscpkgs agenix; theFlake = self; };
|
|
modules = [ "${self.outPath}/m/${name}/configuration.nix" ];
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
hut = mkConf "hut";
|
|
owl1 = mkConf "owl1";
|
|
owl2 = mkConf "owl2";
|
|
eudy = mkConf "eudy";
|
|
koro = mkConf "koro";
|
|
bay = mkConf "bay";
|
|
lake2 = mkConf "lake2";
|
|
raccoon = mkConf "raccoon";
|
|
};
|
|
|
|
packages.x86_64-linux = self.nixosConfigurations.hut.pkgs // {
|
|
bscpkgs = bscpkgs.packages.x86_64-linux;
|
|
nixpkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
};
|
|
};
|
|
}
|