svn path=/nixos/branches/modular-nixos/; revision=15670

This commit is contained in:
Eelco Dolstra 2009-05-20 10:18:54 +00:00
parent eb91b27809
commit f99fe41f65
2 changed files with 4 additions and 1 deletions

View file

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

View file

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