{ config, pkgs, lib, ... }: { imports = [ ./hardware-configuration.nix { sound.enable = true; } { environment.systemPackages = let worldradio = pkgs.callPackage {}; in [ (pkgs.writers.writeDashBin "mpv" '' ${pkgs.mpv}/bin/mpv --no-video "$@" '') (pkgs.writers.writeDashBin "worldradio" '' shuf ${worldradio} | ${pkgs.findutils}/bin/xargs ${pkgs.mpv}/bin/mpv --no-video '') ]; } { environment.systemPackages = [ pkgs.tmux ]; systemd.services.turntables = { description = "music controller session"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; path = [ pkgs.alacritty.terminfo ]; script = '' ${pkgs.tmux}/bin/tmux -2 new-session -d -s turntables ${pkgs.alsaUtils}/bin/alsamixer \; new-window ''; preStop = "${pkgs.tmux}/bin/tmux kill-session -t turntables"; serviceConfig = { User = "root"; RemainAfterExit = true; Type = "oneshot"; }; }; } ]; nix.nixPath = [ "/var/src" ]; services.logind = { lidSwitch = "ignore"; lidSwitchDocked = "ignore"; lidSwitchExternalPower = "ignore"; }; services.illum.enable = true; environment.systemPackages = with pkgs; [ git vim htop ]; boot.loader.systemd-boot = { enable = true; configurationLimit = 5; }; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "zaatar"; networking.retiolum = { ipv4 = "10.243.2.34"; ipv6 = "42:0:3c46:156e:10b6:3bd6:6e82:b2cd"; }; system.stateVersion = "20.09"; }