mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
* Create /etc/shells. KDM in KDE 4.7 requires it.
svn path=/nixos/trunk/; revision=27804
This commit is contained in:
parent
14636ba057
commit
6e7ce112bb
2 changed files with 24 additions and 0 deletions
23
modules/config/shells.nix
Normal file
23
modules/config/shells.nix
Normal file
|
@ -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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
./config/no-x-libs.nix
|
./config/no-x-libs.nix
|
||||||
./config/nsswitch.nix
|
./config/nsswitch.nix
|
||||||
./config/power-management.nix
|
./config/power-management.nix
|
||||||
|
./config/shells.nix
|
||||||
./config/swap.nix
|
./config/swap.nix
|
||||||
./config/system-path.nix
|
./config/system-path.nix
|
||||||
./config/timezone.nix
|
./config/timezone.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue