forked from rarias/jungle
54 lines
1.3 KiB
Nix
54 lines
1.3 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;
|
|
# Only listen locally, as we serve it via ssh
|
|
bindAddress = "127.0.0.1";
|
|
port = 5000;
|
|
package = pkgs.nix-serve-ng.overrideAttrs (oldAttrs: {
|
|
src = pkgs.fetchgit {
|
|
url = "https://jungle.bsc.es/git/abonerib/nix-serve-ng.git";
|
|
hash = "sha256-N6c3NozYqAGwmjf+k5GHOZzlcquDntrJwsZQ7O2sqtQ=";
|
|
};
|
|
});
|
|
|
|
secretKeyFile = "/var/cache-priv-key.pem";
|
|
# Public key:
|
|
# 10.0.40.6:8jBhIdXEBap+Qo+vc1/fnV9vj43A2oDk839EEheRr/U=
|
|
};
|
|
|
|
}
|