refactor
This commit is contained in:
parent
8cd6d3f771
commit
b61d86f525
11 changed files with 550 additions and 562 deletions
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
_: {
|
||||
imports = [ ];
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{ lib, ... }: {
|
||||
imports = [ ./filesystem.nix ./kernel.nix ];
|
||||
|
||||
#hardware.raspberry-pi."4".poe-plus-hat.enable = true;
|
||||
hardware.raspberry-pi."4".apply-overlays-dtmerge.enable = lib.mkDefault true;
|
||||
hardware.deviceTree.filter = "bcm2711-rpi-4*.dtb";
|
||||
hardware.deviceTree = {
|
||||
hardware = {
|
||||
raspberry-pi."4".apply-overlays-dtmerge.enable = lib.mkDefault true;
|
||||
deviceTree = {
|
||||
filter = "bcm2711-rpi-4*.dtb";
|
||||
overlays = [
|
||||
# Combined equivalent to:
|
||||
# * https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
|
||||
|
@ -218,4 +218,5 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
{ secrets, ... }:
|
||||
let
|
||||
inherit (secrets) frp_config;
|
||||
in
|
||||
{
|
||||
{ secrets, ... }: {
|
||||
services.frp = {
|
||||
enable = true;
|
||||
role = "client";
|
||||
settings = {
|
||||
"common" = {
|
||||
server_addr = frp_config.ip;
|
||||
inherit (secrets.frp_config) server_addr token;
|
||||
server_port = 7000;
|
||||
authentication_method = "token";
|
||||
token = frp_config.token;
|
||||
};
|
||||
|
||||
"ssh.rico0" = {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{ lib, ... }: {
|
||||
imports = [ ./filesystem.nix ./kernel.nix ];
|
||||
|
||||
#hardware.raspberry-pi."4".poe-plus-hat.enable = true;
|
||||
hardware.raspberry-pi."4".apply-overlays-dtmerge.enable = lib.mkDefault true;
|
||||
hardware.deviceTree.filter = "bcm2711-rpi-4*.dtb";
|
||||
hardware.deviceTree = {
|
||||
hardware = {
|
||||
raspberry-pi."4".apply-overlays-dtmerge.enable = lib.mkDefault true;
|
||||
deviceTree = {
|
||||
filter = "bcm2711-rpi-4*.dtb";
|
||||
overlays = [
|
||||
# Combined equivalent to:
|
||||
# * https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
|
||||
|
@ -218,4 +218,5 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
{ secrets, ... }:
|
||||
let
|
||||
inherit (secrets) frp_config;
|
||||
in
|
||||
{
|
||||
{ secrets, ... }: {
|
||||
services.frp = {
|
||||
enable = true;
|
||||
role = "client";
|
||||
settings = {
|
||||
common = {
|
||||
server_addr = frp_config.ip;
|
||||
inherit (secrets.frp_config) server_addr token;
|
||||
server_port = 7000;
|
||||
authentication_method = "token";
|
||||
token = frp_config.token;
|
||||
};
|
||||
|
||||
"ssh.rico1" = {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{ lib, ... }: {
|
||||
imports = [ ./filesystem.nix ./kernel.nix ];
|
||||
|
||||
#hardware.raspberry-pi."4".poe-plus-hat.enable = true;
|
||||
hardware.raspberry-pi."4".apply-overlays-dtmerge.enable = lib.mkDefault true;
|
||||
hardware.deviceTree.filter = "bcm2711-rpi-4*.dtb";
|
||||
hardware.deviceTree = {
|
||||
hardware = {
|
||||
raspberry-pi."4".apply-overlays-dtmerge.enable = lib.mkDefault true;
|
||||
deviceTree = {
|
||||
filter = "bcm2711-rpi-4*.dtb";
|
||||
overlays = [
|
||||
# Combined equivalent to:
|
||||
# * https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
|
||||
|
@ -218,4 +218,5 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
, ...
|
||||
}:
|
||||
let
|
||||
system = pkgs.system;
|
||||
inherit (pkgs) system;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
{ secrets, ... }:
|
||||
let
|
||||
inherit (secrets) frp_config;
|
||||
in
|
||||
{
|
||||
{ secrets, ... }: {
|
||||
services.frp = {
|
||||
enable = true;
|
||||
role = "client";
|
||||
settings = {
|
||||
"common" = {
|
||||
server_addr = frp_config.ip;
|
||||
inherit (secrets.frp_config) server_addr token;
|
||||
server_port = 7000;
|
||||
authentication_method = "token";
|
||||
token = frp_config.token;
|
||||
};
|
||||
|
||||
"ssh.rico2" = {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
, ...
|
||||
}:
|
||||
let
|
||||
system = pkgs.system;
|
||||
inherit (pkgs) system;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
, ...
|
||||
}:
|
||||
let
|
||||
system = pkgs.system;
|
||||
inherit (pkgs) system;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
|
BIN
secrets.nix
BIN
secrets.nix
Binary file not shown.
Loading…
Reference in a new issue