Clean up formatting
This commit is contained in:
parent
23d7557b3a
commit
a451e63974
4 changed files with 36 additions and 42 deletions
|
@ -5,19 +5,14 @@
|
||||||
hardwareModules.lenovo-thinkpad-x1-9th-gen
|
hardwareModules.lenovo-thinkpad-x1-9th-gen
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules =
|
||||||
"xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"
|
[ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "ahci" "usbhid" ];
|
||||||
"ahci"
|
|
||||||
"usbhid"
|
|
||||||
];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ]; # TODO: This should be moved to defaults
|
boot.initrd.kernelModules =
|
||||||
|
[ "dm-snapshot" ]; # TODO: This should be moved to defaults
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ modemmanager libmbim ];
|
||||||
modemmanager
|
|
||||||
libmbim
|
|
||||||
];
|
|
||||||
|
|
||||||
# CPU Configuration
|
# CPU Configuration
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
in pkgs.runCommand "nixfmt-check" { } ''
|
in pkgs.runCommand "nixfmt-check" { } ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd ${self}
|
cd ${self}
|
||||||
${pkgs.findutils}/bin/find . -type f -name '*.nix' -exec ${pkgs.nixfmt}/bin/nixfmt --check {} +
|
${self.apps.${system}.format.program} --check
|
||||||
mkdir $out
|
mkdir $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
format = let
|
format = let
|
||||||
pkgs = pkgsUnstable;
|
pkgs = pkgsUnstable;
|
||||||
formatter = pkgsUnstable.writeShellScriptBin "formatter" ''
|
formatter = pkgsUnstable.writeShellScriptBin "formatter" ''
|
||||||
${pkgs.findutils}/bin/find . -type f -name '*.nix' -exec ${pkgs.nixfmt}/bin/nixfmt {} +
|
${pkgs.findutils}/bin/find . -type f -name '*.nix' -exec ${pkgs.nixfmt}/bin/nixfmt $@ {} +
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
type = "app";
|
type = "app";
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
boot.initrd.luks.devices = {
|
boot.initrd.luks.devices = { "luks".device = "/dev/disk/by-label/luks"; };
|
||||||
"luks".device = "/dev/disk/by-label/luks";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems = let rootdev = "/dev/disk/by-label/hv_ochsenchopf"; in {
|
fileSystems = let rootdev = "/dev/disk/by-label/hv_ochsenchopf";
|
||||||
|
in {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = rootdev;
|
device = rootdev;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
Loading…
Add table
Reference in a new issue