Browse Source

dacbert: deploy

nek0/mail_redux
Astro 8 months ago
parent
commit
4b452bbc8d
  1. 2
      host-registry.nix
  2. 46
      hosts/dacbert/default.nix

2
host-registry.nix

@ -118,7 +118,7 @@ rec {
ip6 = "2a00:8180:2c00:282:1024:5fff:febd:9be7";
};
dacbert.ip4 = "127.0.0.1";
dacbert.ip4 = "dacbert.hq.c3d2.de";
};
hqGlobal = builtins.attrNames hosts;

46
hosts/dacbert/default.nix

@ -19,7 +19,6 @@
swapDevices = [ ];
hardware.enableRedistributableFirmware = true;
#networking.wireless.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
boot = {
@ -27,7 +26,7 @@
grub.enable = false;
raspberryPi = {
enable = true;
version = 3;
version = 4;
uboot.enable = true;
firmwareConfig = ''
gpu_mem=192
@ -63,7 +62,7 @@
hostName = "dacbert"; # Define your hostname.
useDHCP = false;
interfaces.eth0.useDHCP = true;
firewall.enable = true;
firewall.enable = false;
};
# List packages installed in system profile. To search, run:
@ -78,6 +77,9 @@
youtube-dl
ncpamixer
pulseaudio # required for pactl
#chromium
firefox
pavucontrol
];
programs.tmux.enable = true;
@ -99,11 +101,47 @@
users.users.k-ot = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" ];
extraGroups = [ "wheel" "audio" "video" ];
};
c3d2.audioServer.enable = true;
# Select internationalisation properties.
console = {
font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
keyMap = "de";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "de";
services.xserver.xkbOptions = "eurosign:e";
services.xserver.displayManager = {
lightdm = { enable = true; };
autoLogin = {
enable = true;
user = "k-ot";
};
defaultSession = "gnome-xorg";
};
services.xserver.desktopManager = {
gnome.enable = true;
# kodi.enable = true;
};
systemd.user.services.x11vnc = {
description = "X11 VNC server";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = ''
${pkgs.x11vnc}/bin/x11vnc -shared -forever -passwd k-ot
'';
RestartSec = 3;
Restart = "always";
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave

Loading…
Cancel
Save