From 10888ffca2dbe39721a0b62766c34b97bce8fb08 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 28 Aug 2018 14:13:05 +0200 Subject: satoshipay: continue using overriden printer drivers --- modules/satoshipay.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix index bbde34e..075ae3c 100644 --- a/modules/satoshipay.nix +++ b/modules/satoshipay.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, fetchurl, lib, ... }: { virtualisation = { docker = { @@ -65,7 +65,13 @@ services.printing.drivers = with pkgs; [ - unstable.cups-toshiba-estudio + (cups-toshiba-estudio.overrideAttrs (oldAttrs: { + version = "7.89"; + src = pkgs.fetchurl { + url = http://business.toshiba.com/downloads/KB/f1Ulds/15178/TOSHIBA_ColorMFP_CUPS.tar; + sha256 = "0qz4r7q55i0adf4fv3aqnfqgi2pz3jb1jixkqm9x6nk4vanyjf4r"; + }; + })) ]; networking.domain = "satoshipay.io"; -- cgit 1.4.1 From 83b39bc89a5698ba7842ea9de6621817d1d894ca Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 7 Sep 2018 17:08:36 +0200 Subject: Import more packages for imperative user installs --- modules/development/base.nix | 1 + modules/development/javascript.nix | 7 ++++++- modules/programs/accounting.nix | 1 + modules/satoshipay.nix | 2 ++ modules/user-interface.nix | 2 ++ 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/development/base.nix b/modules/development/base.nix index e8d2b76..d2d67db 100644 --- a/modules/development/base.nix +++ b/modules/development/base.nix @@ -8,6 +8,7 @@ editorconfig-core-c multimarkdown + go gocode surf diff --git a/modules/development/javascript.nix b/modules/development/javascript.nix index 2e92509..c882860 100644 --- a/modules/development/javascript.nix +++ b/modules/development/javascript.nix @@ -4,12 +4,17 @@ nodejs-8_x phantomjs2 yarn + nodePackages.tern nodePackages.node2nix nodePackages.nodemon nodePackages.javascript-typescript-langserver nodePackages.eslint_d + + # npm install may use any of these + python2 nodePackages.node-gyp - gnumake + nodePackages.node-gyp-build + nodePackages.node-pre-gyp ]; } diff --git a/modules/programs/accounting.nix b/modules/programs/accounting.nix index 5882436..7c17c14 100644 --- a/modules/programs/accounting.nix +++ b/modules/programs/accounting.nix @@ -6,5 +6,6 @@ bean-add beancount fava + reckon ]; } diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix index 075ae3c..ee5ae9a 100644 --- a/modules/satoshipay.nix +++ b/modules/satoshipay.nix @@ -23,11 +23,13 @@ nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ + openssl google-chrome docker_compose meteor minikube mongodb-tools + s3cmd sops unstable.google-cloud-sdk unstable.kubernetes diff --git a/modules/user-interface.nix b/modules/user-interface.nix index a91dc4a..26699da 100644 --- a/modules/user-interface.nix +++ b/modules/user-interface.nix @@ -43,8 +43,10 @@ in aspell aspellDicts.en + cifs-utils hexchat signal-desktop + nextcloud-client trash-cli ]; -- cgit 1.4.1 From 05011c3fe1b68c3414fc8a34307c2a07f9427a34 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 7 Sep 2018 17:08:54 +0200 Subject: T470s: Improve GPU usage/acceleration --- modules/machines/t470s.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/machines/t470s.nix b/modules/machines/t470s.nix index e6fb8cb..304bfd5 100644 --- a/modules/machines/t470s.nix +++ b/modules/machines/t470s.nix @@ -5,6 +5,8 @@ firmwareLinuxNonfree ]; + boot.kernelPackages = pkgs.linuxPackages_4_17; + systemd.services.ModemManager.enable = true; hardware.pulseaudio.extraConfig = '' @@ -12,11 +14,11 @@ ''; # Try a different acceleration method; maybe it helps with screen corruption - services.xserver.deviceSection = '' - Option "AccelMethod" "sna" - Option "TearFree" "true" - Option "TripleBuffer" "false" - ''; + # services.xserver.deviceSection = '' + # Option "AccelMethod" "sna" + # Option "TearFree" "true" + # Option "TripleBuffer" "false" + # ''; services.xserver.monitorSection = '' DisplaySize 310 176 -- cgit 1.4.1 From 474a3757e7eb9d57d040c6f95c3b689c17288bca Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 20 Sep 2018 10:54:25 +0200 Subject: satoshipay: use tmpdir for mongodb --- modules/satoshipay.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix index ee5ae9a..75a0407 100644 --- a/modules/satoshipay.nix +++ b/modules/satoshipay.nix @@ -43,6 +43,7 @@ services.mongodb = { enable = true; replSetName = "rs0"; + dbpath = "/tmp/mongodb"; }; systemd.services.mongodb.wantedBy = lib.mkForce []; systemd.timers.mongodb = { -- cgit 1.4.1 From a114b12027fbd82484833a7a2ded35273de39e3b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 24 Sep 2018 16:08:09 +0200 Subject: bare-metal: tweak TCP congestion control --- modules/hardware/bare-metal.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/hardware/bare-metal.nix b/modules/hardware/bare-metal.nix index eacc9f4..9d79fb5 100644 --- a/modules/hardware/bare-metal.nix +++ b/modules/hardware/bare-metal.nix @@ -11,6 +11,11 @@ hardware.cpu.intel.updateMicrocode = true; + boot.kernel.sysctl = { + "net.ipv4.tcp_allowed_congestion_control" = "illinois reno lp"; + "net.ipv4.tcp_congestion_control" = "illinois"; + }; + boot.tmpOnTmpfs = true; fileSystems."/".options = [ "noatime" "nodiratime" ]; -- cgit 1.4.1