diff --git a/machines/Behemoth/configuration.nix b/machines/Behemoth/configuration.nix new file mode 100644 index 0000000..3c70b57 --- /dev/null +++ b/machines/Behemoth/configuration.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ]; + + services = { + cron.enable = false; + gnome3.gnome-terminal-server.enable = true; + }; + + networking.dhcpcd.extraConfig = "noarp"; + + environment.systemPackages = with pkgs; [ xdiskusage ]; + + system.stateVersion = "19.03"; +} diff --git a/machines/Behemoth/hardware-configuration.nix b/machines/Behemoth/hardware-configuration.nix new file mode 100644 index 0000000..e4e26b7 --- /dev/null +++ b/machines/Behemoth/hardware-configuration.nix @@ -0,0 +1,67 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ]; + + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + cleanTmpDir = true; + initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "xhci_pci" "usbhid" "sd_mod" "sr_mod" ]; + kernelModules = [ "kvm-amd" ]; + }; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/2f9455e9-ec8a-481e-9d5c-222eebab5e2d"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/DB3A-4C49"; + fsType = "vfat"; + }; + + nix.maxJobs = lib.mkDefault 6; + + hardware = { + firmware = with pkgs; [ firmwareLinuxNonfree ]; + enableAllFirmware = true; + enableKSM = true; + opengl = { + driSupport = true; + extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ]; + driSupport32Bit = true; + extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiVdpau ]; + }; + + pulseaudio = { + enable = true; + support32Bit = true; + package = pkgs.pulseaudioFull; + zeroconf.discovery.enable = false; + extraClientConf = '' + autospawn = no + ''; + }; + + bluetooth = { + enable = true; + powerOnBoot = true; + }; + }; + + powerManagement = { + enable = true; + cpuFreqGovernor = "powersave"; + }; + services.upower.enable = true; + services.xserver.videoDrivers = [ "nvidia" ]; + time.timeZone = "Europe/Berlin"; +} diff --git a/machines/Behemoth/options.nix b/machines/Behemoth/options.nix new file mode 100644 index 0000000..d543e0f --- /dev/null +++ b/machines/Behemoth/options.nix @@ -0,0 +1,51 @@ +{ lib, ... }: + +with lib; + +{ + imports = [ + ../../options/machine.nix + ../../options/copySysConf.nix + ]; + + config.machine = { + allowUnfree = true; + hostName = "Behemoth"; + administrators = [ { name = "derped"; id = 1337; } ]; + conffiles = [ + "etcfiles" + "etcvars" + "fonts" + "zsh" + ]; + pkgs = [ + "base" + "dict" + "emacs" + "extra" + "cpp" + "haskell" + "mailutils" + "python3" + "rustpkgs" + "xpkgs" + ]; + services = [ + "desktop" + "udev" + "cups" + ]; + firewall = { + enable = true; + allowPing = true; + allowedUDPPortRanges = [ { from = 1714; to = 1764; } ]; + allowedTCPPortRanges = [ { from = 1714; to = 1764; } ]; + }; + desktop.wms = [ "i3" ]; + }; + + config.system.copySysConf = { + enable = false; + addToNixPath = false; + }; +}