refactor: format config with nixpkgs-fmt

for consistency
This commit is contained in:
Pierre Martin
2022-09-03 07:26:40 +02:00
parent 6d13cc66bc
commit e39666ee76
5 changed files with 79 additions and 73 deletions

View File

@@ -6,7 +6,8 @@
{
imports =
[ # Include the results of the hardware scan.
[
# Include the results of the hardware scan.
./hardware-configuration.nix
./framework.nix
<home-manager/nixos>
@@ -70,9 +71,9 @@
users.users.pierre = {
isNormalUser = true;
description = "Pierre";
extraGroups = [ "networkmanager" "wheel" "audio" "docker" "video" ];
extraGroups = [ "networkmanager" "wheel" "audio" "docker" "video" ];
shell = pkgs.zsh;
packages = with pkgs; [];
packages = with pkgs; [ ];
};
home-manager.users.pierre = import /home/pierre/dotfiles/home.nix;

View File

@@ -74,4 +74,4 @@
# Backlight (see https://wiki.archlinux.org/title/Backlight#xbacklight_returns_:_No_outputs_have_backlight_property)
hardware.acpilight.enable = true;
}
}

View File

@@ -5,7 +5,8 @@
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
@@ -14,18 +15,19 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/db660732-f520-4e68-9141-b0899f221e82";
{
device = "/dev/disk/by-uuid/db660732-f520-4e68-9141-b0899f221e82";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/D7D6-B4C6";
{
device = "/dev/disk/by-uuid/D7D6-B4C6";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/da431bdf-cec4-4928-b44b-e6d2c3419063"; }
];
[{ device = "/dev/disk/by-uuid/da431bdf-cec4-4928-b44b-e6d2c3419063"; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's