Add machine Behemoth

This commit is contained in:
Kevin Baensch 2019-09-23 04:09:01 +02:00
parent f3fcee5d5a
commit c2a93c6004
3 changed files with 136 additions and 0 deletions

View file

@ -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";
}

View file

@ -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 =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
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";
}

View file

@ -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;
};
}