forked from rarias/jungle
55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common/ssf.nix
|
|
../module/hut-substituter.nix
|
|
./virtualization.nix
|
|
./hydra.nix
|
|
];
|
|
|
|
# Select this using the ID to avoid mismatches
|
|
boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d5356ca";
|
|
|
|
# No swap, there is plenty of RAM
|
|
swapDevices = lib.mkForce [];
|
|
|
|
# Users with sudo access
|
|
users.groups.wheel.members = [ "abonerib" "anavarro" ];
|
|
|
|
# Run julia installed with juliaup using julia's own libraries:
|
|
# NIX_LD_LIBRARY_PATH=~/.julia/juliaup/${VERS}/lib/julia ~/.juliaup/bin/julia
|
|
programs.nix-ld.enable = true;
|
|
|
|
networking = {
|
|
hostName = "weasel";
|
|
interfaces.eno1.ipv4.addresses = [ {
|
|
address = "10.0.40.6";
|
|
prefixLength = 24;
|
|
} ];
|
|
interfaces.ibp5s0.ipv4.addresses = [ {
|
|
address = "10.0.42.6";
|
|
prefixLength = 24;
|
|
} ];
|
|
};
|
|
|
|
services.nix-serve = {
|
|
enable = true;
|
|
bindAddress = "0.0.0.0";
|
|
port = 5000;
|
|
package = pkgs.haskell.lib.overrideSrc (pkgs.haskell.packages.ghc96.nix-serve-ng.override { nix = pkgs.nixVersions.nix_2_28; }) {
|
|
src = pkgs.fetchgit {
|
|
url = "https://jungle.bsc.es/git/abonerib/nix-serve-ng.git";
|
|
rev = "9c056641300a826db66b66d7e584b2541d38927a";
|
|
hash = "sha256-y69ZchFiZOU71eyeljcQgLxkLk5JUzZfanq8Yzw4MkI=";
|
|
};
|
|
version = "unstable";
|
|
};
|
|
|
|
secretKeyFile = "/var/cache-priv-key.pem";
|
|
# Public key:
|
|
# 10.0.40.6:8jBhIdXEBap+Qo+vc1/fnV9vj43A2oDk839EEheRr/U=
|
|
};
|
|
|
|
}
|