1
0
Fork 0
nix-config/systems/aarch64-linux/blarm/default.nix

75 lines
1.8 KiB
Nix

{
lib,
namespaces,
modulesPath,
...
}:
with lib.${namespaces};
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
];
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
boot.loader.grub.enable = false;
# Enables the generation of /boot/extlinux/extlinux.conf
boot.loader.generic-extlinux-compatible.enable = true;
networking.hostName = "blarm"; # Define your hostname.
networking.networkmanager.enable = true;
networking.defaultGateway.address = "192.168.1.1";
networking.defaultGateway.interface = "end0";
networking.interfaces.end0.ipv4.addresses = [
{
address = "192.168.1.202";
prefixLength = 32;
}
];
networking.interfaces.end0.ipv6.addresses = [
{
address = "fd00:192:168:1::202";
prefixLength = 64;
}
{
address = "fd00:192:168:1::251";
prefixLength = 64;
}
];
networking.firewall.enable = false;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
users.users.philipp = {
isNormalUser = true;
description = "Philipp Böhm";
extraGroups = [
"wheel"
"caddy"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDwUGxdwTgjc61VNh7QNfrrZwz5yHkJ6AGsRsgoDV3a4 philipp-mobile"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJqbT8AdnS++ZoL7TYg2skQUvfWx29Iq+mEYv2Ok2QHb arbeit"
];
};
# Enable the OpenSSH daemon.
services.openssh = enabled;
awesome-flake.services.caddy = enabled;
awesome-flake.container.technitium = enabled;
awesome-flake.container.invidious = enabled;
awesome-flake.cli.neovim = enabled;
system.stateVersion = "24.11";
}