From 8eb9faea91abe315207289235fbaa612946ff63e Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 4 Feb 2017 14:35:29 +0100 Subject: Apply stashed changes sorry --- makefu/1systems/darth.nix | 10 +++++----- makefu/1systems/gum.nix | 31 +++++++++++++++++++++---------- makefu/1systems/omo.nix | 2 ++ makefu/1systems/x.nix | 23 +++++++++++++++++------ makefu/2configs/default.nix | 4 ++-- makefu/2configs/git/cgit-retiolum.nix | 3 ++- makefu/3modules/snapraid.nix | 1 + makefu/5pkgs/acdcli/default.nix | 2 ++ makefu/5pkgs/default.nix | 1 + makefu/5pkgs/elchhub/default.nix | 4 ++-- 10 files changed, 55 insertions(+), 26 deletions(-) (limited to 'makefu') diff --git a/makefu/1systems/darth.nix b/makefu/1systems/darth.nix index 11bb47a9..b3902117 100644 --- a/makefu/1systems/darth.nix +++ b/makefu/1systems/darth.nix @@ -7,7 +7,7 @@ let auxDisk = byid "ata-HGST_HTS721010A9E630_JR10006PH3A02F"; dataPartition = auxDisk + "-part1"; - allDisks = [ rootDisk auxDisk ]; + allDisks = [ rootDisk ]; # auxDisk in { imports = [ ../. @@ -64,10 +64,10 @@ in { services.smartd.devices = builtins.map (x: { device = x; }) allDisks; zramSwap.enable = true; - fileSystems."/data" = { - device = dataPartition; - fsType = "ext4"; - }; + #fileSystems."/data" = { + # device = dataPartition; + # fsType = "ext4"; + #}; boot.loader.grub.device = rootDisk; diff --git a/makefu/1systems/gum.nix b/makefu/1systems/gum.nix index e7761a64..18dc644f 100644 --- a/makefu/1systems/gum.nix +++ b/makefu/1systems/gum.nix @@ -11,31 +11,40 @@ in { ../2configs/fs/simple-swap.nix ../2configs/fs/single-partition-ext4.nix ../2configs/smart-monitor.nix - ../2configs/iodined.nix ../2configs/git/cgit-retiolum.nix + ../2configs/backup.nix # ../2configs/mattermost-docker.nix - ../2configs/nginx/euer.test.nix - ../2configs/nginx/public_html.nix - ../2configs/nginx/update.connector.one.nix - ../2configs/deployment/mycube.connector.one.nix - + ../2configs/disable_v6.nix ../2configs/exim-retiolum.nix ../2configs/tinc/retiolum.nix ../2configs/urlwatch.nix - ../2configs/torrent.nix - ../2configs/graphite-standalone.nix - ../2configs/sabnzbd.nix + + # services ../2configs/gum-share.nix + ../2configs/sabnzbd.nix + ../2configs/torrent.nix + ../2configs/iodined.nix - ../2configs/opentracker.nix + ## Web + ../2configs/deployment/owncloud.nix + ../2configs/nginx/share-download.nix + ../2configs/nginx/euer.test.nix + ../2configs/nginx/public_html.nix + ../2configs/nginx/update.connector.one.nix + ../2configs/deployment/mycube.connector.one.nix + + # ../2configs/opentracker.nix + ../2configs/logging/central-stats-client.nix ]; services.smartd.devices = [ { device = "/dev/sda";} ]; + makefu.dl-dir = "/var/download"; ###### stable services.nginx.virtualHosts.cgit.serverAliases = [ "cgit.euer.krebsco.de" ]; krebs.build.host = config.krebs.hosts.gum; + krebs.tinc.retiolum = { extraConfig = '' ListenAddress = ${external-ip} 53 @@ -65,6 +74,8 @@ in { get ]; services.bitlbee.enable = true; + systemd.services.bitlbee.environment.BITLBEE_DEBUG="1"; + # systemd.services.bitlbee.serviceConfig.ExecStart = "${pkgs.bitlbee}/bin/bitlbee -Dnv -c # Hardware boot.loader.grub.device = "/dev/sda"; diff --git a/makefu/1systems/omo.nix b/makefu/1systems/omo.nix index 422fe7c4..7a36c57b 100644 --- a/makefu/1systems/omo.nix +++ b/makefu/1systems/omo.nix @@ -55,6 +55,8 @@ in { ../2configs/tinc/retiolum.nix ../2configs/logging/central-stats-server.nix ../2configs/logging/central-stats-client.nix + + ../2configs/kapacitor.nix # ../2configs/torrent.nix # ../2configs/elchos/search.nix diff --git a/makefu/1systems/x.nix b/makefu/1systems/x.nix index 6fe3883a..adbf372a 100644 --- a/makefu/1systems/x.nix +++ b/makefu/1systems/x.nix @@ -12,22 +12,33 @@ ../2configs/laptop-backup.nix # testing - #../2configs/elchos/search.nix + ../2configs/openvpn/vpngate.nix #../2configs/temp/share-samba.nix # ../2configs/mediawiki.nix # ../2configs/wordpress.nix # ../2configs/nginx/public_html.nix # ../2configs/nginx/icecult.nix + + # ../2configs/elchos/irc-token.nix + # ../2configs/elchos/log.nix + + #../2configs/elchos/search.nix + #../2configs/elchos/stats.nix + #../2configs/elchos/test/ftpservers.nix + ../2configs/laptop-backup.nix + # ../2configs/tinc/siem.nix + #../2configs/torrent.nix + # temporary modules + + # ../2configs/torrent.nix #../2configs/temp/elkstack.nix # ../2configs/temp/sabnzbd.nix - ../2configs/tinc/siem.nix - #../2configs/torrent.nix # Krebs - ../2configs/disable_v6.nix + # ../2configs/disable_v6.nix ../2configs/tinc/retiolum.nix # applications @@ -40,7 +51,7 @@ ../2configs/rad1o.nix # services - ../2configs/git/brain-retiolum.nix + #../2configs/git/brain-retiolum.nix ../2configs/tor.nix ../2configs/steam.nix # ../2configs/buildbot-standalone.nix @@ -52,8 +63,8 @@ # mount points ../2configs/fs/sda-crypto-root-home.nix - # temporary modules ]; + makefu.server.primary-itf = "wlp2s0"; makefu.full-populate = true; nixpkgs.config.allowUnfree = true; diff --git a/makefu/2configs/default.nix b/makefu/2configs/default.nix index 9e3f3eb6..95ca4884 100644 --- a/makefu/2configs/default.nix +++ b/makefu/2configs/default.nix @@ -22,11 +22,11 @@ with import ; user = config.krebs.users.makefu; source = let inherit (config.krebs.build) host user; - ref = "ee13b9af"; # stable @ 2016-12-12 + ref = "5dad589"; # stable @ 2016-12-28 + cherry-pick graphite in { nixpkgs = if config.makefu.full-populate || (getEnv "dummy_secrets" == "true") then { - git = { url = https://github.com/nixos/nixpkgs; inherit ref; }; + git = { url = https://github.com/makefu/nixpkgs; inherit ref; }; } else # TODO use http, once it is implemented diff --git a/makefu/2configs/git/cgit-retiolum.nix b/makefu/2configs/git/cgit-retiolum.nix index 553a2397..81a5cde8 100644 --- a/makefu/2configs/git/cgit-retiolum.nix +++ b/makefu/2configs/git/cgit-retiolum.nix @@ -26,6 +26,7 @@ let priv-repos = mapAttrs make-priv-repo { autosync = { }; + pass = { }; }; connector-repos = mapAttrs make-priv-repo { @@ -61,7 +62,7 @@ let # TODO: get the list of all krebsministers krebsminister = with config.krebs.users; [ lass tv ]; - all-makefu = with config.krebs.users; [ makefu makefu-omo makefu-tsp makefu-vbob ]; + all-makefu = with config.krebs.users; [ makefu makefu-omo makefu-tsp makefu-vbob makefu-tempx ]; all-exco = with config.krebs.users; [ exco ]; priv-rules = repo: set-owners repo all-makefu; diff --git a/makefu/3modules/snapraid.nix b/makefu/3modules/snapraid.nix index 762e909b..9c785478 100644 --- a/makefu/3modules/snapraid.nix +++ b/makefu/3modules/snapraid.nix @@ -101,6 +101,7 @@ let # for scrubbing,fixing pkgs.snapraid ]; + krebs.on-failure.plans.snapraid-sync.name = "snapraid-sync"; environment.etc."snapraid.conf".text = snapraid-conf; systemd.timers.snapraid-sync = { description = "snapraid sync timer"; diff --git a/makefu/5pkgs/acdcli/default.nix b/makefu/5pkgs/acdcli/default.nix index 1621375e..6442fecb 100644 --- a/makefu/5pkgs/acdcli/default.nix +++ b/makefu/5pkgs/acdcli/default.nix @@ -11,6 +11,8 @@ with python3Packages; buildPythonPackage rec { sha256 = "1ak9xxpyb7n6iyalf2082jpimklakm0fgm7vsv7qcm8wy6vlq2cw"; }; doCheck = false; # ImportError: Failed to import test module: tests + + # acd_cli gets dumped in bin and gets overwritten by fixupPhase postFixup = '' mv $out/bin/.acd_cli.py-wrapped $out/bin/acd_cli.py ''; diff --git a/makefu/5pkgs/default.nix b/makefu/5pkgs/default.nix index b62f1efa..71354a01 100644 --- a/makefu/5pkgs/default.nix +++ b/makefu/5pkgs/default.nix @@ -33,5 +33,6 @@ in taskserver = callPackage ./taskserver {}; udpt = callPackage ./udpt {}; wol = callPackage ./wol {}; + snapraid = callPackage ./snapraid {}; }; } diff --git a/makefu/5pkgs/elchhub/default.nix b/makefu/5pkgs/elchhub/default.nix index a4fb8604..a28267cb 100644 --- a/makefu/5pkgs/elchhub/default.nix +++ b/makefu/5pkgs/elchhub/default.nix @@ -24,8 +24,8 @@ in buildPythonPackage rec { src = fetchFromGitHub { owner = "krebscode"; repo = "elchhub"; - rev = "2f499c1"; - sha256 = "1lbql3lx7i3ynsjanfy9vln6795rb56n9xq9vkb7xbml60gmn1wg"; + rev = "58707c6"; + sha256 = "04spbcr660dxyc4jvrai094na25zizd2cfi36jz19lahb0k66lqm"; }; meta = { homepage = https://github.com/krebscode/elchhub; -- cgit v1.2.3