ammending the previous with un added files
This commit is contained in:
parent
7404966c92
commit
d0f4af1214
10 changed files with 330 additions and 6 deletions
11
modules/services/docker.nix
Normal file
11
modules/services/docker.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
liveRestore = false;
|
||||
autoPrune.enable = true;
|
||||
};
|
||||
|
||||
# But allow docker containers to access the local machine
|
||||
networking.firewall.trustedInterfaces = [ "docker0" ];
|
||||
}
|
||||
19
modules/services/openssh.nix
Normal file
19
modules/services/openssh.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.openssh = lib.mkDefault {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
#settings = lib.mkDefault {
|
||||
passwordAuthentication = false;
|
||||
permitRootLogin = "no";
|
||||
kbdInteractiveAuthentication = false;
|
||||
#};
|
||||
startWhenNeeded = true;
|
||||
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
|
||||
};
|
||||
security.pam = lib.mkDefault {
|
||||
enableSSHAgentAuth = true;
|
||||
services.sudo.sshAgentAuth = true;
|
||||
};
|
||||
}
|
||||
17
modules/services/pipewire.nix
Normal file
17
modules/services/pipewire.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# https://nixos.wiki/wiki/PipeWire
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
# Remove sound.enable or turn it off if you had it set previously, it seems to cause conflicts with pipewire
|
||||
#sound.enable = false;
|
||||
# rtkit is optional but recommended
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue