Unverified Commit 624d1362 authored by fpletz's avatar fpletz 🚧
Browse files

luftschleuse: init

parent ec5d1fba
......@@ -67,6 +67,15 @@
./loungepi.nix
];
};
luftschleuse = { name, nodes, pkgs, ... }: {
deployment.allowLocalDeployment = true;
nixpkgs.system = "aarch64-linux";
imports = [
./modules/default.nix
./luftschleuse.nix
];
};
};
};
}
{ config, pkgs, lib, ... }:
{
imports = [
"${fetchTarball "https://github.com/NixOS/nixos-hardware/archive/9886a06e4745edb31587d0e9481ad82d35f0d593.tar.gz"}/raspberry-pi/4"
];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
networking = {
hostName = "luftschleuse";
useNetworkd = true;
useDHCP = false;
interfaces.eth0.useDHCP = true;
};
systemd.network.networks."40-eth0" = {
linkConfig.RequiredForOnline = false;
};
boot.tmpOnTmpfs = true;
zramSwap = {
enable = true;
memoryPercent = 100;
};
environment.systemPackages = with pkgs; [ colmena lm_sensors ];
users = {
mutableUsers = false;
users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFJY+/tAXZFm9U+nJt0kKo6e/TrYiH7E49n0ktbuF5I6 fpletz@fpine"
];
};
services.hostapd = {
enable = true;
countryCode = "DE";
ssid = "luftschleuse3";
channel = 7;
wpa = false;
extraConfig = ''
auth_alg=0
'';
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment