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,23 +9,24 @@
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions"; 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 { pkgs = system: import nixpkgs {
inherit system; inherit system;
overlays = [ overlays = [
inputs.nix-vscode-extensions.overlays.default inputs.nix-vscode-extensions.overlays.default
]; ];
config = {allowUnfree = true;}; config = { allowUnfree = true; };
}; };
in { in
{
nixosConfigurations = { nixosConfigurations = {
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec { fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { pkgs = pkgs system; }; specialArgs = { pkgs = (pkgs system); };
modules = [ modules = [
./hosts/main-laptop/configuration.nix ./hosts/main-laptop/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View file

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

View file

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