Make nixfmt veery happy 🤗

This commit is contained in:
Fabian Hauser 2020-04-20 21:37:37 +00:00
parent 3d7a3dd741
commit 0f509a7c8e
4 changed files with 9 additions and 3 deletions

View file

@ -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')"

View file

@ -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;

View file

@ -29,6 +29,7 @@
smartmontools
parted
borgbackup
nixfmt
];
services.fwupd.enable = true;

View file

@ -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