mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
25 lines
430 B
Nix
25 lines
430 B
Nix
# 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"
|
|
''
|
|
/run/current-system/sw/bin/bash
|
|
/var/run/current-system/sw/bin/bash
|
|
/bin/sh
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
}
|