rpi5
This commit is contained in:
7
hosts/rpi-5/containers.nix
Normal file
7
hosts/rpi-5/containers.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
let
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
}
|
||||
@@ -16,12 +16,34 @@ in
|
||||
imports = [
|
||||
rpi-pi.nixosModules.raspberry-pi
|
||||
rpi-pi.nixosModules.sd-image
|
||||
./containers.nix
|
||||
];
|
||||
nix.settings = {
|
||||
substituters = [ "https://nix-community.cachix.org" ];
|
||||
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
||||
};
|
||||
|
||||
services.traefik = {
|
||||
enable = true;
|
||||
|
||||
staticConfigOptions = {
|
||||
entryPoints = {
|
||||
web = {
|
||||
address = "0.0.0.0:80";
|
||||
asDefault = true;
|
||||
};
|
||||
traefik = {
|
||||
address = ":8081";
|
||||
};
|
||||
};
|
||||
api.dashboard = true;
|
||||
api.insecure = true;
|
||||
};
|
||||
};
|
||||
|
||||
# TEMP
|
||||
networking.firewall.enable = false;
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users.doloro = {
|
||||
@@ -33,8 +55,14 @@ in
|
||||
];
|
||||
initialPassword = "meowmeowmeow";
|
||||
};
|
||||
users.root = {
|
||||
initialPassword = "rootmeow";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE/4h+WCBBW82puv8SMdUbkWymF4amEMuZitgFztB6oZ" # laptop pub key
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBaa6Z5qtBSLEz+A4fQGYPfkOISsRQlmKkVbcx2zxML7" # pc pub key
|
||||
];
|
||||
};
|
||||
};
|
||||
users.users.root.initialPassword = "root";
|
||||
|
||||
networking.hostName = "nixos-001-rp5";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user