This commit is contained in:
Adithya 2024-01-04 21:51:16 +05:30
parent 8cd6d3f771
commit b61d86f525
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
11 changed files with 550 additions and 562 deletions

View file

@ -1,4 +1,4 @@
{ ... }: {
_: {
imports = [ ];
virtualisation.oci-containers = {

View file

@ -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 @@
}
];
};
};
}

View file

@ -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" = {

View file

@ -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 @@
}
];
};
};
}

View file

@ -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" = {

View file

@ -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 @@
}
];
};
};
}

View file

@ -3,7 +3,7 @@
, ...
}:
let
system = pkgs.system;
inherit (pkgs) system;
in
{
services = {

View file

@ -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" = {

View file

@ -3,7 +3,7 @@
, ...
}:
let
system = pkgs.system;
inherit (pkgs) system;
in
{
services = {

View file

@ -3,7 +3,7 @@
, ...
}:
let
system = pkgs.system;
inherit (pkgs) system;
in
{
services = {

Binary file not shown.