chore: reformat using nixd and nixfmt-rfc-style

This commit is contained in:
Veneficium 2024-09-18 18:34:21 +02:00
parent 1ea540535e
commit 813cc599f0
38 changed files with 280 additions and 166 deletions

View file

@ -1,11 +1,11 @@
{ pkgs, lib, ... }: {
{ pkgs, lib, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
../../nixosModules/default.nix
];
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
../../nixosModules/default.nix
];
settings = {
users.veneficium.enable = lib.mkForce true;
@ -49,9 +49,12 @@
nixpkgs.config.allowUnfree = true;
#enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
#DO NOT CHANGE THIS! IMPORTANT! DO NOT CHANGE THIS!
system.stateVersion = "24.05"; #DO NOT CHANGE THIS!
system.stateVersion = "24.05"; # DO NOT CHANGE THIS!
}

View file

@ -1,31 +1,43 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"vmd"
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/58d4396b-d87c-419b-ac35-c4d282ef05b1";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/58d4396b-d87c-419b-ac35-c4d282ef05b1";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/F5D9-1046";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/F5D9-1046";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];

View file

@ -1,9 +1,17 @@
{ lib, pkgs, ... }: {
imports =
[
./hardware-configuration.nix
../../nixosModules/default.nix
];
{ lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../nixosModules/default.nix
];
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
#required by virt-manager
programs.dconf.enable = true;
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "fedfer" ];
settings = {
users.fedfer.enable = lib.mkForce true;
@ -59,7 +67,7 @@
};
#remove various bloat
services.xserver.excludePackages = with pkgs; [ xterm ];
services.xserver.excludePackages = with pkgs; [ xterm ];
hardware = {
bluetooth = {
@ -85,8 +93,11 @@
];
#enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "23.11"; #DO NOT CHANGE THIS!
system.stateVersion = "23.11"; # DO NOT CHANGE THIS!
}

View file

@ -1,33 +1,38 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, modulesPath, ... }:
{
config,
lib,
modulesPath,
...
}:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (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"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
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,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
../../homeManagerModules/zsh.nix
@ -47,6 +48,6 @@
nixpkgs.config.allowUnfree = true;
home.stateVersion = "23.11"; #DO NOT CHANGE
programs.home-manager.enable = true; #DO NOT CHANGE
home.stateVersion = "23.11"; # DO NOT CHANGE
programs.home-manager.enable = true; # DO NOT CHANGE
}