blob: a0cfc195c8c0ecc635b032686d05b6571a5dd22f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ config, pkgs, lib, ... }:
let
rootUUID = "e9c95c74-e4cf-41f6-bb45-baf8dd579217";
swapUUID = "4d172959-5cfd-4164-a46e-fa7be0dfd03a";
diskID = "usb-Lexar_USB_Flash_Drive_201303211246293590E4-0:0";
modulesPath = "${import ../../nixpkgs-path.nix}/nixos/modules";
in {
# whitelist insecure webkitgtk
nixpkgs.config.permittedInsecurePackages = [
"webkitgtk-2.4.11"
];
vuizvui.user.aszlig.profiles.workstation.enable = true;
imports = [ "${modulesPath}/profiles/all-hardware.nix" ];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
initrd.kernelModules = [ "fbcon" "usb_storage" ];
loader.grub.device = "/dev/disk/by-id/${diskID}";
loader.grub.memtest86.enable = true;
};
networking.hostName = "arilou";
networking.wireless.enable = lib.mkForce true;
fileSystems."/".device = "/dev/disk/by-uuid/${rootUUID}";
fileSystems."/".fsType = "btrfs";
fileSystems."/".options = [
"ssd"
"space_cache"
"compress-force=zlib"
"noatime"
];
fileSystems."/tmp".device = "none";
fileSystems."/tmp".fsType = "tmpfs";
fileSystems."/tmp".options = [ "nosuid" "nodev" "relatime" ];
swapDevices = lib.singleton {
device = "/dev/disk/by-uuid/${swapUUID}";
};
services.openssh.enable = lib.mkForce false;
services.xserver.videoDrivers = [ "intel" "ati" "nouveau" ];
nix.maxJobs = lib.mkForce 2;
}
|