m 3 server-config: init

This commit is contained in:
makefu 2016-12-22 14:12:24 +01:00
parent 140cd53473
commit 3756ac532c
3 changed files with 38 additions and 0 deletions

27
1systems/fileleech.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, pkgs, ... }:
{
imports = [
../.
# configure your hw:
# ../2configs/hw/CAC.nix
# ../2configs/fs/CAC-CentOS-7-64bit.nix
../2configs/save-diskspace.nix
../2configs/tinc/retiolum.nix
];
krebs = {
enable = true;
build.host = config.krebs.hosts.fileleech;
};
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO003402PB080BGN";
fileSystems."/" = {
device = "/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO003402PB080BGN";
};
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "aacraid" "usb_storage" "usbhid" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
}

View file

@ -8,6 +8,7 @@ _:
./forward-journal.nix
./opentracker.nix
./ps3netsrv.nix
./server-config.nix
./snapraid.nix
./taskserver.nix
./udpt.nix

View file

@ -0,0 +1,10 @@
{config, lib, pkgs, ... }:
with import <stockholm/lib>;
{
options.makefu.server.primary-itf = lib.mkOption {
type = types.str;
description = "Primary interface of the server";
};
}