2014-04-01 13:42:18 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
2014-03-17 13:04:39 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
|
2014-04-01 13:42:18 +00:00
|
|
|
config = mkIf config.boot.isContainer {
|
2014-03-17 13:04:39 +00:00
|
|
|
|
2014-04-19 12:41:21 +00:00
|
|
|
# Disable some features that are not useful in a container.
|
2014-04-15 23:44:43 +00:00
|
|
|
sound.enable = mkDefault false;
|
2014-04-19 12:41:21 +00:00
|
|
|
services.udisks2.enable = mkDefault false;
|
2014-04-15 23:44:43 +00:00
|
|
|
|
2014-04-18 14:40:27 +00:00
|
|
|
networking.useHostResolvConf = true;
|
|
|
|
|
2014-04-22 14:07:53 +00:00
|
|
|
# Containers should be light-weight, so start sshd on demand.
|
|
|
|
services.openssh.startWhenNeeded = mkDefault true;
|
|
|
|
|
2014-04-18 15:00:11 +00:00
|
|
|
# Shut up warnings about not having a boot loader.
|
|
|
|
system.build.installBootLoader = "${pkgs.coreutils}/bin/true";
|
|
|
|
|
2014-08-12 00:51:20 +00:00
|
|
|
systemd.services.systemd-remount-fs.enable = false;
|
|
|
|
|
2014-03-17 13:04:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|