[fix] *.nix: reformat with alejandra

This commit is contained in:
Jalil David Salamé Messina 2024-05-04 20:57:33 +02:00
parent 876dc45719
commit 39c2fb096c
Signed by: jalil
GPG key ID: F016B9E770737A0B
26 changed files with 565 additions and 562 deletions

View file

@ -1,5 +1,4 @@
{ nixos-hardware }:
{
{nixos-hardware}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -10,8 +9,8 @@
];
# Setup extra filesystem options
fileSystems."/".options = [ "compress=zstd" ];
fileSystems."/home".options = [ "compress=zstd" ];
fileSystems."/".options = ["compress=zstd"];
fileSystems."/home".options = ["compress=zstd"];
fileSystems."/nix".options = [
"compress=zstd"
"noatime"

View file

@ -6,9 +6,8 @@
lib,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot.initrd.availableKernelModules = [
"xhci_pci"
@ -16,20 +15,20 @@
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = [ "subvol=root" ];
options = ["subvol=root"];
};
fileSystems."/nix" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = [ "subvol=nix" ];
options = ["subvol=nix"];
};
fileSystems."/home" = {
@ -42,7 +41,7 @@
fsType = "vfat";
};
swapDevices = [ { device = "/dev/disk/by-label/NIXSWAP"; } ];
swapDevices = [{device = "/dev/disk/by-label/NIXSWAP";}];
# 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

View file

@ -1,9 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ nixos-hardware }:
{ pkgs, ... }:
{
{nixos-hardware}: {pkgs, ...}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -14,9 +12,9 @@
nixos-hardware.nixosModules.common-gpu-amd
];
fileSystems."/".options = [ "compress=zstd" ];
fileSystems."/steam".options = [ "compress=zstd" ];
fileSystems."/home".options = [ "compress=zstd" ];
fileSystems."/".options = ["compress=zstd"];
fileSystems."/steam".options = ["compress=zstd"];
fileSystems."/home".options = ["compress=zstd"];
fileSystems."/nix".options = [
"compress=zstd"
"noatime"
@ -46,7 +44,7 @@
# };
services.openssh.enable = true;
services.openssh.startWhenNeeded = true;
services.openssh.settings.AllowUsers = [ "jalil" ];
services.openssh.settings.AllowUsers = ["jalil"];
# Enable CUPS to print documents.
services.printing.enable = true;

View file

@ -6,9 +6,8 @@
lib,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot.initrd.availableKernelModules = [
"nvme"
@ -18,15 +17,15 @@
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" = {
# device = "/dev/disk/by-label/NIXOSROOT";
device = "/dev/disk/by-label/NIXOSHOME";
fsType = "btrfs";
options = [ "subvol=root" ];
options = ["subvol=root"];
};
fileSystems."/steam" = {
@ -37,13 +36,13 @@
fileSystems."/home" = {
device = "/dev/disk/by-label/NIXOSHOME";
fsType = "btrfs";
options = [ "subvol=home" ];
options = ["subvol=home"];
};
fileSystems."/nix" = {
device = "/dev/disk/by-label/NIXOSROOT";
fsType = "btrfs";
options = [ "subvol=nix" ];
options = ["subvol=nix"];
};
fileSystems."/boot" = {
@ -51,7 +50,7 @@
fsType = "vfat";
};
swapDevices = [ { device = "/dev/disk/by-label/SWAP"; } ];
swapDevices = [{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

View file

@ -1,10 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ nixos-hardware }:
{ pkgs, ... }:
{
{nixos-hardware}: {pkgs, ...}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -16,8 +13,8 @@
];
fileSystems = {
"/".options = [ "compress=zstd" ];
"/home".options = [ "compress=zstd" ];
"/".options = ["compress=zstd"];
"/home".options = ["compress=zstd"];
"/nix".options = [
"compress=zstd"
"noatime"
@ -25,7 +22,7 @@
};
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [ "amdgpu.dcdebugmask=0x10" ]; # Fixes graphical issues
boot.kernelParams = ["amdgpu.dcdebugmask=0x10"]; # Fixes graphical issues
hardware.opengl.enable = true;
hardware.bluetooth.enable = true;

View file

@ -7,10 +7,8 @@
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot.initrd.availableKernelModules = [
"nvme"
@ -18,26 +16,26 @@
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/efbda7f0-c286-4fb1-b780-d3128e4d1a3e";
fsType = "btrfs";
options = [ "subvol=root" ];
options = ["subvol=root"];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/efbda7f0-c286-4fb1-b780-d3128e4d1a3e";
fsType = "btrfs";
options = [ "subvol=home" ];
options = ["subvol=home"];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/efbda7f0-c286-4fb1-b780-d3128e4d1a3e";
fsType = "btrfs";
options = [ "subvol=nix" ];
options = ["subvol=nix"];
};
fileSystems."/boot" = {
@ -45,7 +43,7 @@
fsType = "vfat";
};
swapDevices = [ ];
swapDevices = [];
# 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

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
services.qemuGuest.enable = true;
boot.initrd.availableKernelModules = [