m 1 studio: provide vnc and realtime audio

This commit is contained in:
makefu 2017-05-12 11:38:45 +02:00
parent 43ac35b749
commit 1d2bad9d10
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -2,32 +2,46 @@
{
imports = [
../.
../2configs/vncserver.nix
../2configs/vim.nix
../2configs/disable_v6.nix
../2configs/jack-on-pulse.nix
../2configs/gui/studio.nix
];
makefu.gui.user = "user"; # we use an extra user
krebs = {
enable = true;
tinc.retiolum.enable = true;
build.host = config.krebs.hosts.studio;
};
networking.firewall.allowedTCPPorts = [ 655 ];
networking.firewall.allowedUDPPorts = [ 655 ];
users.users.user = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" ];
uid = 1000;
};
environment.systemPackages = with pkgs;[
# audio foo
## pulseaudio
pavucontrol
paprefs
pamixer
# extra alsa tools
alsa-hdspconf
alsa-hdspmixer
alsa-hdsploader
# recording
darkice
(mumble.override { jackSupport = true; })
# browsing
firefox
chromium
];
sound.enable = true;
hardware.pulseaudio = {
enable = true;
systemWide = true;
};
nixpkgs.config.allowUnfree = true;
fonts = {
enableCoreFonts = true;
enableFontDir = true;
@ -35,21 +49,6 @@
fonts = [ ];
};
# ingos favorite display manager
services.xserver.displayManager.sddm = {
enable = true;
autoLogin.enable = true;
autoLogin.user = "user";
};
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.layout = "us";
services.xserver.xkbVariant = "altgr-intl";
services.xserver.xkbOptions = "ctrl:nocaps";
i18n = {
consoleKeyMap = "us-int";
defaultLocale = "en_US.UTF-8";
};
# hardware
@ -67,4 +66,10 @@
};
swapDevices = [ { device = "/dev/disk/by-uuid/1914af67-5a8f-41d3-a1c2-211c39605da9"; } ];
users.users.user = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" ];
uid = 1000;
openssh.authorizedKeys.keys = [ config.krebs.users.makefu.pubkey ];
};
}