-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsi.nix
60 lines (45 loc) · 1.46 KB
/
msi.nix
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
50
51
52
53
54
55
56
57
58
59
60
{ config, lib, pkgs, ... }:
{
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
time.timeZone = "America/Bogota";
services.xserver.videoDrivers = [ "intel" "nvidia"];
hardware.opengl.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ];
hardware.opengl.extraPackages32 = [ pkgs.linuxPackages.nvidia_x11.lib32 ];
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos";
fsType = "btrfs";
};
fileSystems."/d" =
{ device = "/dev/disk/by-label/data";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.useOSProber = true;
environment.systemPackages = with pkgs; [
wget vim git
pciutils file cudatoolkit vlc
tmux htop ripgrep unzip
tcpdump telnet openssh
];
services.openssh = {
enable = true;
ports = [ 444 ];
gatewayPorts = "yes";
passwordAuthentication = false;
permitRootLogin = "no";
};
nixpkgs.config.allowUnfree = true;
hardware.pulseaudio.enable = true;
sound.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.support32Bit = true;}