configurations of hq services
https://hydra.hq.c3d2.de/jobset/c3d2/nix-config#tabs-jobs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
4.4 KiB
164 lines
4.4 KiB
3 years ago
|
# Edit this configuration file to define what should be installed on
|
||
|
# your system. Help is available in the configuration.nix(5) man page
|
||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
|
||
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports =
|
||
|
[ # Include the results of the hardware scan.
|
||
|
./hardware-configuration.nix
|
||
|
];
|
||
|
|
||
|
# Use the systemd-boot EFI boot loader.
|
||
|
boot.loader.systemd-boot.enable = true;
|
||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
|
||
|
networking.hostName = "pulsebert"; # Define your hostname.
|
||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||
|
|
||
|
# Configure network proxy if necessary
|
||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||
|
|
||
|
# Select internationalisation properties.
|
||
|
i18n = {
|
||
|
consoleFont = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
||
|
consoleKeyMap = "us";
|
||
|
defaultLocale = "en_US.UTF-8";
|
||
|
};
|
||
|
|
||
|
# Set your time zone.
|
||
|
time.timeZone = "Europe/Berlin";
|
||
|
|
||
|
# List packages installed in system profile. To search, run:
|
||
|
# $ nix search wget
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
# specific printer drivers for our printers
|
||
|
epson-escpr
|
||
|
splix
|
||
|
# utilities
|
||
|
nix-index
|
||
3 years ago
|
usbutils
|
||
3 years ago
|
tmux
|
||
|
vim
|
||
3 years ago
|
git
|
||
|
# NCurses Music Player Client (Plus Plus)
|
||
|
# a commandline front-end client for mpd
|
||
|
# 2019-01-21 mag vater gern gleich einen schoenen lokalen Verwaltung fuer MPD haben.
|
||
|
# ncmpcpp
|
||
|
home-manager
|
||
|
mumble
|
||
3 years ago
|
];
|
||
|
|
||
|
# Some programs need SUID wrappers, can be configured further or are
|
||
|
# started in user sessions.
|
||
|
# programs.mtr.enable = true;
|
||
|
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
|
||
|
|
||
|
# List services that you want to enable:
|
||
|
|
||
|
# Enable the OpenSSH daemon.
|
||
|
services.openssh.enable = true;
|
||
|
|
||
3 years ago
|
# X11 Forwarding for mumble...
|
||
|
programs.ssh.forwardX11 = true;
|
||
|
services.openssh.forwardX11 = true;
|
||
|
|
||
3 years ago
|
# Open ports in the firewall.
|
||
3 years ago
|
networking.firewall.allowedTCPPorts = [
|
||
|
4713 # PulseAudio
|
||
3 years ago
|
631 # cups
|
||
3 years ago
|
80 # Web/ympd
|
||
|
6600 # mpd
|
||
3 years ago
|
];
|
||
3 years ago
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||
|
# Or disable the firewall altogether.
|
||
|
# networking.firewall.enable = false;
|
||
|
|
||
|
# Enable CUPS to print documents.
|
||
|
services.printing.enable = true;
|
||
|
|
||
|
# Enable sound.
|
||
|
sound.enable = true;
|
||
|
hardware.pulseaudio.enable = true;
|
||
3 years ago
|
# PulseAudio as-a-Service
|
||
|
hardware.pulseaudio.systemWide = true;
|
||
3 years ago
|
hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [
|
||
|
"127.0.0.0/8" "::1/128"
|
||
|
"172.22.99.0/24" "2a02:8106:208:5201:58::/64"
|
||
|
];
|
||
3 years ago
|
hardware.pulseaudio.tcp.enable = true;
|
||
|
hardware.pulseaudio.zeroconf.publish.enable = true;
|
||
|
|
||
|
# tell Avahi to publish CUPS and PulseAudio
|
||
|
services.avahi = {
|
||
|
enable = true;
|
||
|
publish.enable = true;
|
||
|
publish.userServices = true;
|
||
|
};
|
||
3 years ago
|
|
||
|
# Enable the X11 windowing system.
|
||
|
# services.xserver.enable = true;
|
||
|
# services.xserver.layout = "us";
|
||
|
# services.xserver.xkbOptions = "eurosign:e";
|
||
|
|
||
|
# Enable touchpad support.
|
||
|
# services.xserver.libinput.enable = true;
|
||
|
|
||
|
# Enable the KDE Desktop Environment.
|
||
|
# services.xserver.displayManager.sddm.enable = true;
|
||
|
# services.xserver.desktopManager.plasma5.enable = true;
|
||
|
|
||
3 years ago
|
security.sudo = {
|
||
|
enable = true;
|
||
|
wheelNeedsPassword = false;
|
||
|
};
|
||
|
|
||
3 years ago
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
|
users.users."k-ot" = {
|
||
3 years ago
|
extraGroups = ["audio" "wheel"]; # allow k-ot to use PulseAudio
|
||
3 years ago
|
isNormalUser = true;
|
||
|
uid = 1000;
|
||
|
};
|
||
|
|
||
|
# This value determines the NixOS release with which your system is to be
|
||
|
# compatible, in order to avoid breaking some software such as database
|
||
|
# servers. You should change this only after NixOS release notes say you
|
||
|
# should.
|
||
|
system.stateVersion = "18.09"; # Did you read the comment?
|
||
|
|
||
3 years ago
|
|
||
|
# vater hoerte, dass menschen im space gern mpd fuer das abspielen von musik erwarten wuerden
|
||
|
#### https://nixos.org/nixos/options.html#services.mpd.enable
|
||
|
services.mpd = {
|
||
|
enable=true;
|
||
|
network.listenAddress="any";
|
||
|
musicDirectory = "/mnt/storage/Music";
|
||
|
extraConfig = ''
|
||
|
audio_output {
|
||
|
type "pulse"
|
||
|
name "/proc"
|
||
|
}
|
||
|
|
||
|
audio_output {
|
||
|
type "pulse"
|
||
|
name "SDK"
|
||
|
server "dacbert.hq.c3d2.de"
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
fileSystems."/mnt/storage" = {
|
||
|
device = "storage.hq.c3d2.de:/mnt/zroot/storage/rpool";
|
||
|
fsType = "nfs";
|
||
|
};
|
||
|
|
||
|
# MPD music playing daemon with webinterface
|
||
|
services.ympd = {
|
||
|
enable = true;
|
||
|
webPort = "80";
|
||
|
};
|
||
|
|
||
3 years ago
|
}
|