svn path=/nixos/branches/modular-nixos/; revision=15670
This commit is contained in:
parent
eb91b27809
commit
f99fe41f65
2 changed files with 4 additions and 1 deletions
|
@ -3,8 +3,10 @@ let
|
|||
fromEnv = name: default:
|
||||
let env = builtins.getEnv name; in
|
||||
if env == "" then default else env;
|
||||
|
||||
configuration = import (fromEnv "NIXOS_CONFIG" /etc/nixos/configuration.nix);
|
||||
nixpkgs = fromEnv "NIXPKGS" /etc/nixos/nixpkgs;
|
||||
|
||||
nixpkgs = fromEnv "NIXPKGS" /etc/nixos/nixpkgs;
|
||||
|
||||
system = import system/system.nix { inherit configuration nixpkgs; };
|
||||
|
||||
|
|
|
@ -87,6 +87,7 @@ let
|
|||
|
||||
sshdUid = (import ../system/ids.nix).uids.sshd;
|
||||
|
||||
# !!! is this assertion evaluated anywhere???
|
||||
assertion = cfg.permitRootLogin == "yes" ||
|
||||
cfg.permitRootLogin == "without-password" ||
|
||||
cfg.permitRootLogin == "forced-commands-only" ||
|
||||
|
|
Loading…
Reference in a new issue