Feature/rfc 0166 fmt (#113)

* change formatter to nixfmt-rfc-style

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

* Add rfc-style fmt'ing

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

---------

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-03-03 18:06:28 -05:00
committed by GitHub
parent e732499201
commit 1a8a2fa394
19 changed files with 492 additions and 264 deletions

View File

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
time.timeZone = "America/New_York";
console.keyMap = "us";
networking = {
@ -7,7 +8,7 @@
};
boot = {
zfs.extraPools = ["Main"];
zfs.extraPools = [ "Main" ];
filesystem = "zfs";
useSystemdBoot = true;
};
@ -21,7 +22,7 @@
daemon."settings" = {
experimental = true;
data-root = "/var/lib/docker";
exec-opts = ["native.cgroupdriver=systemd"];
exec-opts = [ "native.cgroupdriver=systemd" ];
log-opts = {
max-size = "10m";
max-file = "5";
@ -36,7 +37,7 @@
};
environment = {
systemPackages = with pkgs; [docker-compose];
systemPackages = with pkgs; [ docker-compose ];
etc = {
# Creates /etc/lynis/custom.prf
"lynis/custom.prf" = {
@ -60,7 +61,7 @@
services = {
nfs.server.enable = true;
openssh.ports = [352];
openssh.ports = [ 352 ];
smartd.enable = true;
@ -80,7 +81,7 @@
zerotierone = {
enable = true;
joinNetworks = ["e4da7455b2ae64ca"];
joinNetworks = [ "e4da7455b2ae64ca" ];
};
};

View File

@ -1 +1,7 @@
{...}: {users = ["alice" "richie"];}
{ ... }:
{
users = [
"alice"
"richie"
];
}

View File

@ -3,21 +3,27 @@
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
networking.useDHCP = lib.mkDefault true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
swapDevices = [{device = "/dev/disk/by-uuid/9d4ef549-d426-489d-8332-0a49589c6aed";}];
swapDevices = [ { device = "/dev/disk/by-uuid/9d4ef549-d426-489d-8332-0a49589c6aed"; } ];
boot = {
kernelModules = ["kvm-amd"];
extraModulePackages = [];
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
initrd = {
kernelModules = [];
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
kernelModules = [ ];
availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
};
};