Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created August 15, 2019 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinisil/7a13f562f16f3b88aa7b24e4fefba528 to your computer and use it in GitHub Desktop.
Save infinisil/7a13f562f16f3b88aa7b24e4fefba528 to your computer and use it in GitHub Desktop.
{ lib, config, pkgs, ... }: {
imports = [
./hardware-configuration.nix
../../../external/nixpkgs/nixos/modules/profiles/all-hardware.nix
];
hardware.enableAllFirmware = true;
nixpkgs.config.allowUnfree = true;
i18n.consoleUseXkbConfig = true;
services.xserver = {
layout = "us";
xkbVariant = "dvp";
xkbOptions = "caps:backspace";
};
users.extraUsers.infinisil = {
uid = 1000;
description = "Silvan Mosberger";
isNormalUser = true;
extraGroups = [
"wheel"
"systemd-journal"
];
};
boot = {
loader = {
grub = {
enable = true;
device = "nodev";
efiSupport = true;
};
efi.canTouchEfiVariables = true;
};
};
system.stateVersion = "18.09";
networking = {
hostName = "vario";
hostId = "56236562";
};
}
# 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.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "uas" "sd_mod" "sr_mod" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "main";
fsType = "zfs";
};
fileSystems."/nix" =
{ device = "main/nix";
fsType = "zfs";
};
fileSystems."/betty" =
{ device = "main/betty";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/0072-55B1";
fsType = "vfat";
};
fileSystems."/home/infinisil/music" =
{ device = "main/music";
fsType = "zfs";
};
fileSystems."/home/infinisil/media" =
{ device = "main/media";
fsType = "zfs";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/bee530de-fa34-4720-b047-121be58dff56"; }
];
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment