Author: eelco
Date: Sun Jul 17 10:45:49 2011
New Revision: 27804
URL: https://svn.nixos.org/websvn/nix/?rev=27804&sc=1

Log:
* Create /etc/shells.  KDM in KDE 4.7 requires it.

Added:
   nixos/trunk/modules/config/shells.nix
Modified:
   nixos/trunk/modules/module-list.nix

Added: nixos/trunk/modules/config/shells.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixos/trunk/modules/config/shells.nix       Sun Jul 17 10:45:49 2011        
(r27804)
@@ -0,0 +1,23 @@
+# This module creates /etc/shells, the file that defines the list of
+# permissible login shells for user accounts.
+
+{ config, pkgs, ... }:
+
+with pkgs.lib;
+
+{
+
+  config = {
+
+    environment.etc = singleton
+      { target = "shells";
+        source = pkgs.writeText "shells"
+          ''
+            /var/run/current-system/sw/bin/bash
+            /bin/sh
+          '';
+      };
+
+  };  
+
+}

Modified: nixos/trunk/modules/module-list.nix
==============================================================================
--- nixos/trunk/modules/module-list.nix Sat Jul 16 19:27:45 2011        (r27803)
+++ nixos/trunk/modules/module-list.nix Sun Jul 17 10:45:49 2011        (r27804)
@@ -7,6 +7,7 @@
   ./config/no-x-libs.nix
   ./config/nsswitch.nix
   ./config/power-management.nix
+  ./config/shells.nix
   ./config/swap.nix
   ./config/system-path.nix
   ./config/timezone.nix
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to