chore: format using nixpkgs-fmt

This commit is contained in:
Veneficium 2024-07-03 23:20:22 +02:00
parent 8b0286d8d8
commit 87781f976a
26 changed files with 130 additions and 127 deletions

View file

@ -9,7 +9,8 @@
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
};
outputs = inputs@{ self, nixpkgs, home-manager, ... }: let
outputs = inputs@{ self, nixpkgs, home-manager, ... }:
let
pkgs = system: import nixpkgs {
inherit system;
@ -19,13 +20,13 @@
config = { allowUnfree = true; };
};
in {
in
{
nixosConfigurations = {
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { pkgs = pkgs system; };
specialArgs = { pkgs = (pkgs system); };
modules = [
./hosts/main-laptop/configuration.nix
home-manager.nixosModules.home-manager

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ pkgs, ... }: {
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true;

View file

@ -5,7 +5,8 @@
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
@ -14,18 +15,19 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos";
{
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/BOOT";
{
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-label/swap"; }
];
[{ device = "/dev/disk/by-label/swap"; }];
# 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