diff options
author | volth <volth@volth.com> | 2018-07-20 17:56:59 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2018-07-20 18:48:37 +0000 |
commit | 87f5930c3fb2c852f5243278b7a9da8e117d95e4 (patch) | |
tree | d76aa79bc394e820305c4eebbd250c89f6992eb9 /nixos/modules/system/boot | |
parent | a7e5927b4739c6e6427fc993f077cd3eb5433db7 (diff) | |
download | nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.gz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.bz2 nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.lz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.xz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.zst nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.zip |
[bot]: remove unreferenced code
Diffstat (limited to 'nixos/modules/system/boot')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 1 | ||||
-rw-r--r-- | nixos/modules/system/boot/stage-2.nix | 3 | ||||
-rw-r--r-- | nixos/modules/system/boot/systemd-nspawn.nix | 3 | ||||
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 2 |
4 files changed, 0 insertions, 9 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index b6a7081b896c..71b806a0b4e1 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -11,7 +11,6 @@ let udev = config.systemd.package; - kernelPackages = config.boot.kernelPackages; modulesTree = config.system.modulesTree; firmware = config.hardware.firmware; diff --git a/nixos/modules/system/boot/stage-2.nix b/nixos/modules/system/boot/stage-2.nix index 78afbd8dbc12..9fd89b6319db 100644 --- a/nixos/modules/system/boot/stage-2.nix +++ b/nixos/modules/system/boot/stage-2.nix @@ -4,9 +4,6 @@ with lib; let - kernel = config.boot.kernelPackages.kernel; - activateConfiguration = config.system.activationScripts.script; - bootStage2 = pkgs.substituteAll { src = ./stage-2-init.sh; shellDebug = "${pkgs.bashInteractive}/bin/bash"; diff --git a/nixos/modules/system/boot/systemd-nspawn.nix b/nixos/modules/system/boot/systemd-nspawn.nix index 64b3b8b584e3..83fef8354360 100644 --- a/nixos/modules/system/boot/systemd-nspawn.nix +++ b/nixos/modules/system/boot/systemd-nspawn.nix @@ -6,9 +6,6 @@ with import ./systemd-lib.nix { inherit config lib pkgs; }; let cfg = config.systemd.nspawn; - assertions = [ - # boot = true -> processtwo != true - ]; checkExec = checkUnitConfig "Exec" [ (assertOnlyFields [ diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 6f5b15372d75..500c2d406615 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -188,8 +188,6 @@ let "timers.target" ]; - boolToString = value: if value then "yes" else "no"; - makeJobScript = name: text: let mkScriptName = s: (replaceChars [ "\\" ] [ "-" ] (shellEscape s) ); x = pkgs.writeTextFile { name = "unit-script"; executable = true; destination = "/bin/${mkScriptName name}"; inherit text; }; |