diff options
author | Emile <git@emile.space> | 2024-09-19 10:48:16 +0200 |
---|---|---|
committer | Emile <git@emile.space> | 2024-09-19 10:48:16 +0200 |
commit | e833c13c177288b2a7b9168a784e0e6562c025b6 (patch) | |
tree | 1661dad1694989e2d83e6c2fca7b5602a61c574b /nix/hosts/gamont | |
parent | dcde3882d5460368e3c0499a54330f84a6995d62 (diff) |
big format using nixfmt
Diffstat (limited to 'nix/hosts/gamont')
-rw-r--r-- | nix/hosts/gamont/configuration.nix | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/nix/hosts/gamont/configuration.nix b/nix/hosts/gamont/configuration.nix index 4ea1678..b0d0d9d 100644 --- a/nix/hosts/gamont/configuration.nix +++ b/nix/hosts/gamont/configuration.nix @@ -1,4 +1,9 @@ -{ config, pkgs, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: let user = "nixos"; @@ -11,14 +16,19 @@ let "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPZi43zHEsoWaQomLGaftPE5k0RqVrZyiTtGqZlpWsew emile@caladan" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEzLZ56SEgwZZ0OusTdSDDhpMlxSg1zPNdRLuxKOfrR5 emile@chusuk" ]; -in { +in +{ boot = { kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; kernel.sysctl = { "net.ipv4.conf.all.forwarding" = true; }; - initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ]; + initrd.availableKernelModules = [ + "xhci_pci" + "usbhid" + "usb_storage" + ]; loader = { grub.enable = false; generic-extlinux-compatible.enable = true; @@ -47,7 +57,12 @@ in { }; interfaces.end0 = { - ipv4.addresses = [ { address = "192.168.1.1"; prefixLength = 24; } ]; + ipv4.addresses = [ + { + address = "192.168.1.1"; + prefixLength = 24; + } + ]; }; nftables = { @@ -80,13 +95,14 @@ in { }; }; - environment.systemPackages = with pkgs; [ + environment.systemPackages = with pkgs; [ helix - vim + vim dnsmasq tcpdump curl - iptables nftables + iptables + nftables ]; services = { |