git.iko.soy/typeable/nixpkgs
on master help sign in
nixos: top-level: indent
commit563d5b1c87d7e4ca996c00a4df5b734ccd985095 authorJan Malakhovski <oxij@oxij.org> dateMon 24 Sep 2018, 19:43 (8 years ago) parentfece915
1 file changed+24−24
nixos/modules/system/activation/top-level.nix+24−24
nixos/modules/system/activation/top-level.nix+24−24
@@ -99,30 +99,30 @@ let
9999 # `switch-to-configuration' that activates the configuration and
100100 # makes it bootable.
101101 baseSystem = pkgs.stdenvNoCC.mkDerivation {
102− name = let hn = config.networking.hostName;
103− nn = if (hn != "") then hn else "unnamed";
104− in "nixos-system-${nn}-${config.system.nixos.label}";
105− preferLocalBuild = true;
106− allowSubstitutes = false;
107− buildCommand = systemBuilder;
108−
109− inherit (pkgs) utillinux coreutils;
110− systemd = config.systemd.package;
111− shell = "${pkgs.bash}/bin/sh";
112−
113− inherit children;
114− kernelParams = config.boot.kernelParams;
115− installBootLoader =
116− config.system.build.installBootLoader
117− or "echo 'Warning: do not know how to make this configuration bootable; please enable a boot loader.' 1>&2; true";
118− activationScript = config.system.activationScripts.script;
119− nixosLabel = config.system.nixos.label;
120−
121− configurationName = config.boot.loader.grub.configurationName;
122−
123− # Needed by switch-to-configuration.
124−
125− perl = "${pkgs.perl}/bin/perl " + (concatMapStringsSep " " (lib: "-I${lib}/${pkgs.perl.libPrefix}") (with pkgs.perlPackages; [ FileSlurp NetDBus XMLParser XMLTwig ]));
102+ name = let hn = config.networking.hostName;
103+ nn = if (hn != "") then hn else "unnamed";
104+ in "nixos-system-${nn}-${config.system.nixos.label}";
105+ preferLocalBuild = true;
106+ allowSubstitutes = false;
107+ buildCommand = systemBuilder;
108+
109+ inherit (pkgs) utillinux coreutils;
110+ systemd = config.systemd.package;
111+ shell = "${pkgs.bash}/bin/sh";
112+
113+ inherit children;
114+ kernelParams = config.boot.kernelParams;
115+ installBootLoader =
116+ config.system.build.installBootLoader
117+ or "echo 'Warning: do not know how to make this configuration bootable; please enable a boot loader.' 1>&2; true";
118+ activationScript = config.system.activationScripts.script;
119+ nixosLabel = config.system.nixos.label;
120+
121+ configurationName = config.boot.loader.grub.configurationName;
122+
123+ # Needed by switch-to-configuration.
124+
125+ perl = "${pkgs.perl}/bin/perl " + (concatMapStringsSep " " (lib: "-I${lib}/${pkgs.perl.libPrefix}") (with pkgs.perlPackages; [ FileSlurp NetDBus XMLParser XMLTwig ]));
126126 };
127127
128128 # Handle assertions and warnings