diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-06 12:26:52 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-06 12:26:52 -0400 |
commit | b11c5d59911f9549a56839576379e5b2902b4f99 (patch) | |
tree | 630d495f31fbd39c530fe9585a7ce3c008702f93 /modules/services/ttys | |
parent | 9f9ae7c7e9aa440db85c924a636d3827dcdb2a0e (diff) | |
download | nixlib-b11c5d59911f9549a56839576379e5b2902b4f99.tar nixlib-b11c5d59911f9549a56839576379e5b2902b4f99.tar.gz nixlib-b11c5d59911f9549a56839576379e5b2902b4f99.tar.bz2 nixlib-b11c5d59911f9549a56839576379e5b2902b4f99.tar.lz nixlib-b11c5d59911f9549a56839576379e5b2902b4f99.tar.xz nixlib-b11c5d59911f9549a56839576379e5b2902b4f99.tar.zst nixlib-b11c5d59911f9549a56839576379e5b2902b4f99.zip |
nscd: Ensure that invalidate-nscd starts after nscd
Diffstat (limited to 'modules/services/ttys')
-rw-r--r-- | modules/services/ttys/agetty.nix | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/modules/services/ttys/agetty.nix b/modules/services/ttys/agetty.nix index 1916c13333d4..92915f9132be 100644 --- a/modules/services/ttys/agetty.nix +++ b/modules/services/ttys/agetty.nix @@ -2,6 +2,18 @@ with pkgs.lib; +let + + issueFile = pkgs.writeText "issue" '' + + [1;32m${config.services.mingetty.greetingLine}[0m + xyzzy6 + ${config.services.mingetty.helpLine} + + ''; + +in + { ###### interface @@ -79,7 +91,7 @@ with pkgs.lib; [Service] Environment=TERM=linux Environment=LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive - ExecStart=@${pkgs.utillinux}/sbin/agetty agetty --noclear --login-program ${pkgs.shadow}/bin/login %I 38400 + ExecStart=@${pkgs.utillinux}/sbin/agetty agetty --noclear -f ${issueFile} --login-program ${pkgs.shadow}/bin/login %I 38400 Type=idle Restart=always RestartSec=0 @@ -95,7 +107,7 @@ with pkgs.lib; # instead, to ensure that login terminates cleanly. KillSignal=SIGHUP ''; - + boot.systemd.units."serial-getty@.service".text = '' [Unit] @@ -131,12 +143,7 @@ with pkgs.lib; environment.etc = singleton { # Friendly greeting on the virtual consoles. - source = pkgs.writeText "issue" '' - - [1;32m${config.services.mingetty.greetingLine}[0m - ${config.services.mingetty.helpLine} - - ''; + source = issueFile; target = "issue"; }; |