mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Setup OwnTracks frontend and recorder
This commit is contained in:
parent
b07fc41726
commit
623dd63fec
3 changed files with 41 additions and 27 deletions
|
|
@ -2,8 +2,11 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disk-config.nix
|
||||
../../../system/common/containers/owntracks.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
boot.loader.grub = {
|
||||
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
|
||||
# devices = [ ];
|
||||
|
|
@ -11,8 +14,6 @@
|
|||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
networking = {
|
||||
# Open ports in the firewall.
|
||||
firewall.allowedTCPPorts = [ 22 ];
|
||||
|
|
|
|||
13
modules/system/common/containers/owntracks.nix
Normal file
13
modules/system/common/containers/owntracks.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ ... }: {
|
||||
# Ideas from https://madison-technologies.com/take-your-nixos-container-config-and-shove-it/
|
||||
virtualisation.oci-containers.containers = {
|
||||
# See https://github.com/owntracks/frontend
|
||||
ot-frontend = {
|
||||
image = "owntracks/frontend";
|
||||
};
|
||||
# See https://github.com/owntracks/docker-recorder
|
||||
ot-recorder = {
|
||||
image = "owntracks/recorder";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue