🎨 move to nixfmt-rfc-style

This commit is contained in:
2024-12-07 20:46:15 -05:00
parent 9ea7912596
commit a53ad5a5ae
36 changed files with 412 additions and 193 deletions

View File

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./networking.nix # generated at runtime by nixos-infect
@ -26,14 +27,20 @@
hostName = "socrates";
firewall = {
allowPing = true;
allowedTCPPorts = [ 80 443 ];
allowedTCPPorts = [
80
443
];
trustedInterfaces = [ "tailscale0" ];
checkReversePath = "loose";
};
};
nix = {
settings.trusted-users = [ "@wheel" "root" ];
settings.trusted-users = [
"@wheel"
"root"
];
};
security = {

View File

@ -2,5 +2,8 @@
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/vda";
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
fileSystems."/" = {
device = "/dev/vda1";
fsType = "ext4";
};
}

View File

@ -1,4 +1,5 @@
{ lib, ... }: {
{ lib, ... }:
{
# This file was populated at runtime with the networking
# details gathered from the active system.
networking = {
@ -28,14 +29,18 @@
prefixLength = 64;
}
];
ipv4.routes = [{
address = "167.99.176.1";
prefixLength = 32;
}];
ipv6.routes = [{
address = "2604:a880:cad:d0::1";
prefixLength = 32;
}];
ipv4.routes = [
{
address = "167.99.176.1";
prefixLength = 32;
}
];
ipv6.routes = [
{
address = "2604:a880:cad:d0::1";
prefixLength = 32;
}
];
};
};