style: format nix files

This commit is contained in:
Felix Schröter 2020-09-23 13:19:19 +02:00
parent 22f6f8b323
commit 4d3bda09b9
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
19 changed files with 132 additions and 175 deletions

View file

@ -1,9 +1,7 @@
{ config, pkgs, ... }:
{
imports = [
./planck.nix
];
imports = [ ./planck.nix ];
boot.supportedFilesystems = [ "btrfs" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
@ -16,9 +14,7 @@
# Bluetooth
hardware.bluetooth.enable = true;
hardware.bluetooth.config = {
General = {
Enable = "Source,Sink,Media,Socket";
};
General = { Enable = "Source,Sink,Media,Socket"; };
};
# Sound.

View file

@ -1,42 +1,44 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@" "compress-force=zstd" "noatime" ];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@" "compress-force=zstd" "noatime" ];
};
boot.initrd.luks.devices."enc".device = "/dev/disk/by-uuid/6f4f3ce1-57fd-4ec3-bb9d-7847853d2dcf";
boot.initrd.luks.devices."enc".device =
"/dev/disk/by-uuid/6f4f3ce1-57fd-4ec3-bb9d-7847853d2dcf";
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@home" "compress-force=zstd" "noatime" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@home" "compress-force=zstd" "noatime" ];
};
fileSystems."/swap" =
{ device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@swap" ];
neededForBoot = true;
};
fileSystems."/swap" = {
device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@swap" ];
neededForBoot = true;
};
fileSystems."/.snapshots" =
{ device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@snapshots" "compress-force=zstd" "noatime" ];
};
fileSystems."/.snapshots" = {
device = "/dev/disk/by-uuid/9ef41d63-a7ad-406d-8c2b-5ad3fb4c0ea6";
fsType = "btrfs";
options = [ "subvol=@snapshots" "compress-force=zstd" "noatime" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5C20-4516";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/5C20-4516";
fsType = "vfat";
};
swapDevices = [ ];

View file

@ -6,10 +6,6 @@
hardware.opengl = {
driSupport32Bit = true;
extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
extraPackages = with pkgs; [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
};
}

View file

@ -9,9 +9,6 @@
hardware.opengl = {
driSupport32Bit = true;
extraPackages = with pkgs; [
libvdpau-va-gl
vaapiVdpau
];
extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
};
}