From 0f509a7c8eb1721e69b93a86304e21269cfe38f8 Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 20 Apr 2020 21:37:37 +0000 Subject: [PATCH] =?UTF-8?q?Make=20nixfmt=20veery=20happy=20=F0=9F=A4=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 2 +- host/montalin.nix | 5 ++++- role/base/default.nix | 1 + role/dropbear/default.nix | 4 +++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44d3e7e..da98b32 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,4 +4,4 @@ stages: nixfmt: stage: test image: nixery.dev/shell/git/nixfmt - script: "nixfmt -c $(git ls-files *.nix)" + script: "nixfmt -c $(git ls-files '*.nix')" diff --git a/host/montalin.nix b/host/montalin.nix index b66574a..284f02e 100644 --- a/host/montalin.nix +++ b/host/montalin.nix @@ -59,7 +59,10 @@ # replicates the default behaviour. networking.useDHCP = false; networking.interfaces.eno1 = { - ipv4.addresses = [ { address = "10.1.2.2"; prefixLength = 24; } ]; + ipv4.addresses = [{ + address = "10.1.2.2"; + prefixLength = 24; + }]; }; networking.interfaces.wlp1s0.useDHCP = true; diff --git a/role/base/default.nix b/role/base/default.nix index 3d1413f..41eaceb 100644 --- a/role/base/default.nix +++ b/role/base/default.nix @@ -29,6 +29,7 @@ smartmontools parted borgbackup + nixfmt ]; services.fwupd.enable = true; diff --git a/role/dropbear/default.nix b/role/dropbear/default.nix index 5fed692..d0c4028 100644 --- a/role/dropbear/default.nix +++ b/role/dropbear/default.nix @@ -18,7 +18,9 @@ echo 'cryptsetup-askpass' >> /root/.profile ''; }; - boot.kernelParams = [ "ip=10.1.2.1::10.1.2.2:255.255.255.0:montalin:eth0:none:10.1.2.1" ]; # see https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt + boot.kernelParams = [ + "ip=10.1.2.1::10.1.2.2:255.255.255.0:montalin:eth0:none:10.1.2.1" + ]; # see https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt boot.initrd.postMountCommands = '' ip link set eth0 down