diff options
author | makefu <github@syntax-fehler.de> | 2016-12-22 14:12:24 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-12-22 14:15:17 +0100 |
commit | 3756ac532cdeea2300d658254a0c7a556c1a0e1c (patch) | |
tree | c335bb2c57ac24aa6fa397a719139c0df08c41bd | |
parent | 140cd53473519cffd5daf7ae22576ef91574fc14 (diff) |
m 3 server-config: init
-rw-r--r-- | 1systems/fileleech.nix | 27 | ||||
-rw-r--r-- | 3modules/default.nix | 1 | ||||
-rw-r--r-- | 3modules/server-config.nix | 10 |
3 files changed, 38 insertions, 0 deletions
diff --git a/1systems/fileleech.nix b/1systems/fileleech.nix new file mode 100644 index 000000000..4d9b37cea --- /dev/null +++ b/1systems/fileleech.nix @@ -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 = [ ]; +} diff --git a/3modules/default.nix b/3modules/default.nix index 855e134ab..16215b27a 100644 --- a/3modules/default.nix +++ b/3modules/default.nix @@ -8,6 +8,7 @@ _: ./forward-journal.nix ./opentracker.nix ./ps3netsrv.nix + ./server-config.nix ./snapraid.nix ./taskserver.nix ./udpt.nix diff --git a/3modules/server-config.nix b/3modules/server-config.nix new file mode 100644 index 000000000..dbd29d748 --- /dev/null +++ b/3modules/server-config.nix @@ -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"; + }; +} + |