From 8931450834c752b837e55afb48c1ee198647eb95 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Fri, 7 Jul 2023 19:41:07 +0100 Subject: [PATCH] Add eno --- flake.nix | 10 ++++++++++ system/eno/eno.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 system/eno/eno.nix diff --git a/flake.nix b/flake.nix index 34ab7c0..2fa5400 100644 --- a/flake.nix +++ b/flake.nix @@ -89,6 +89,16 @@ ./system/kernighan/kernighan.nix ]; }; + + eno = nixpkgs.lib.nixosSystem { # Music player/alarm clock + system = "aarch64-linux"; + + specialArgs.inputs = inputs; + + modules = [ + ./system/eno/eno.nix + ]; + }; }; }; } diff --git a/system/eno/eno.nix b/system/eno/eno.nix new file mode 100644 index 0000000..4239105 --- /dev/null +++ b/system/eno/eno.nix @@ -0,0 +1,40 @@ + +{ config, pkgs, inputs, ... }: + +{ + imports = + [ + ../shared/shared-configuration.nix + ./eno-hardware.nix + ]; + + networking = { + hostName = "eno"; + firewall = { + enable = true; + allowedTCPPorts = [ 80 443 ]; + }; + interfaces = { + end0.ipv4.addresses = [{ + address = "192.168.40.25"; + prefixLength = 24; + }]; + end0.ipv6.addresses = [{ + address = "fe80::dea6:32ff:fe04:c6f3"; + prefixLength = 64; + }]; + }; + defaultGateway = "192.168.40.1"; + defaultGateway6.address = "fe80::00:b8:c2:db:b8:57"; + defaultGateway6.interface = "end0"; + nameservers = [ "208.67.222.222" "208.67.220.220" ]; + }; + + boot.loader.grub.enable = false; + boot.loader.generic-extlinux-compatible.enable = true; + + environment.systemPackages = with pkgs; [ + git + vim + ]; +}