From 8df82582c04ab5c80489a9d7e4dca8a77f0c32c0 Mon Sep 17 00:00:00 2001 From: Eric Litak Date: Fri, 27 Nov 2020 22:13:34 -0800 Subject: [PATCH] removing some cruft --- nixos-infect | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/nixos-infect b/nixos-infect index 9947603..f61652d 100755 --- a/nixos-infect +++ b/nixos-infect @@ -46,12 +46,7 @@ EOF } EOF - if [[ -n "$doNetConf" ]] - then - makeNetworkingConf - else - true - fi + [[ -n "$doNetConf" ]] && makeNetworkingConf } makeNetworkingConf() { @@ -121,19 +116,6 @@ EOF ''; } EOF - #! /usr/bin/env bash - # NB put your semi-sensitive (not posted to github) configuration in a separate - # file and include it via this customConfig() function. e.g.: - # customConfig() { - # cat > /etc/nixos/custom.nix << EOF - # { config, lib, pkgs, ... }: { - # } - # EOF - # } - # - # then you can add the files in configuration.nix's imports above and run something like: - # cat customConfig nixos-infect | root@targethost bash - if [[ "$(type -t customConfig)" == "function" ]]; then customConfig; fi } makeSwap() {