treewide: fmt

This commit is contained in:
Felix Buehler 2024-07-28 21:08:02 +02:00
parent 330abe53d2
commit ea37c7b836
95 changed files with 1162 additions and 779 deletions

View file

@ -1,7 +1,6 @@
{ self, ... }:
let
inherit
(self.inputs)
inherit (self.inputs)
nixpkgs
nixpkgs-unstable
sops-nix
@ -26,18 +25,19 @@ let
}
{
imports = [
({ pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
overlay-unstable
(import ../overlays)
(import ../pkgs)
];
nix.nixPath = [
"nixpkgs=${pkgs.path}"
];
documentation.info.enable = false;
})
(
{ pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
overlay-unstable
(import ../overlays)
(import ../pkgs)
];
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
documentation.info.enable = false;
}
)
disko.nixosModules.disko
passworts.nixosModules.passworts
sops-nix.nixosModules.sops
@ -60,9 +60,7 @@ in
};
newton = nixosSystem {
system = "x86_64-linux";
modules = defaultModules ++ [
./newton/configuration.nix
];
modules = defaultModules ++ [ ./newton/configuration.nix ];
};
serverle = nixosSystem {
system = "aarch64-linux";

View file

@ -1,5 +1,4 @@
_:
{
_: {
boot.initrd = {
availableKernelModules = [
"ahci"

View file

@ -1,5 +1,4 @@
_:
{
_: {
networking.networkmanager = {
enable = true;

View file

@ -1,5 +1,4 @@
_:
{
_: {
boot.loader = {
timeout = 1;
grub = {

View file

@ -18,9 +18,7 @@
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
luks = {

View file

@ -1,4 +1,9 @@
{ config, lib, modulesPath, ... }:
{
config,
lib,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
@ -9,9 +14,7 @@
"virtio_pci"
"virtio_scsi"
];
boot.initrd.kernelModules = [
"dm-snapshot"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -27,7 +27,9 @@ let
in
{
# kernel parameters are needed for initrd
boot.kernelParams = [ "ip=${ip4_addr}::${ip4_gw}:${ip4_mask}:${config.networking.hostName}:${ifname}:off" ];
boot.kernelParams = [
"ip=${ip4_addr}::${ip4_gw}:${ip4_mask}:${config.networking.hostName}:${ifname}:off"
];
networking = {
nameservers = ip4_dns ++ ip6_dns;
domain = "buehler.rocks";

View file

@ -1,6 +1,5 @@
# enabled system services
_:
{
_: {
my.system = {
podman.enable = true;
};

View file

@ -18,9 +18,7 @@
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
luks = {

View file

@ -1,5 +1,4 @@
_:
{
_: {
networking.firewall.allowedTCPPorts = [
8080 # aria
];

View file

@ -74,9 +74,7 @@
"Aria2" = {
id = "jjnzq-pgzua";
path = "/data/tmp/aria2";
devices = [
"thinkman"
];
devices = [ "thinkman" ];
};
};
};

View file

@ -1,6 +1,5 @@
# enabled system services
_:
{
_: {
my.system = {
avahi.enable = true;
docker.enable = true;

View file

@ -1,5 +1,4 @@
_:
{
_: {
boot = {
loader = {
timeout = 1;

View file

@ -18,9 +18,7 @@
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
mountOptions = [ "defaults" ];
};
};
luks = {

View file

@ -1,6 +1,5 @@
# network settings
_:
{
_: {
# hotfixes for dns settings
networking.extraHosts =
let

View file

@ -1,6 +1,5 @@
# enabled profiles
_:
{
_: {
my.profiles = {
"3d-design".enable = true;
android.enable = true;

View file

@ -9,7 +9,11 @@ in
{
hostName = "buehler.rocks";
system = "x86_64-linux";
supportedFeatures = [ "benchmark" "kvm" "big-parallel" ];
supportedFeatures = [
"benchmark"
"kvm"
"big-parallel"
];
sshUser = "nixremote";
sshKey = secrets."nixremote/ssh_key".path;
maxJobs = 4;

View file

@ -1,6 +1,5 @@
# enabled system services
_:
{
_: {
my.system = {
avahi.enable = true;
fonts.enable = true;