From 0bcabe1c4b1dd74af233674dfa6c6ec3011ce2c0 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 18 Jan 2022 09:43:24 +0100 Subject: restructuring directories --- chaski/configuration.nix | 48 ++++++++ chaski/hardware-configuration.nix | 23 ++++ chaski/ilztal.live/geolocation/index.html | 179 +++++++++++++++++++++++++++ chaski/ilztal.live/geolocation/mapview.html | 94 +++++++++++++++ chaski/ilztal.live/geolocation/view.html | 77 ++++++++++++ chaski/services/VaaS/.gitignore | 1 + chaski/services/VaaS/CHANGELOG.md | 5 + chaski/services/VaaS/app/Main.hs | 58 +++++++++ chaski/services/VaaS/default.nix | 30 +++++ chaski/services/VaaS/haskell.cabal | 35 ++++++ chaski/services/VaaS/index.html | 46 +++++++ chaski/services/geolocation.nix | 6 + chaski/services/gtfs.nix | 38 ++++++ chaski/services/jitsi.nix | 59 +++++++++ chaski/services/uplcg.nix | 23 ++++ chaski/services/woitb.nix | 32 +++++ chaski/services/woitb/index.html | 124 +++++++++++++++++++ chaski/services/woitb/info.html | 180 ++++++++++++++++++++++++++++ 18 files changed, 1058 insertions(+) create mode 100644 chaski/configuration.nix create mode 100644 chaski/hardware-configuration.nix create mode 100644 chaski/ilztal.live/geolocation/index.html create mode 100644 chaski/ilztal.live/geolocation/mapview.html create mode 100644 chaski/ilztal.live/geolocation/view.html create mode 100644 chaski/services/VaaS/.gitignore create mode 100644 chaski/services/VaaS/CHANGELOG.md create mode 100644 chaski/services/VaaS/app/Main.hs create mode 100644 chaski/services/VaaS/default.nix create mode 100644 chaski/services/VaaS/haskell.cabal create mode 100644 chaski/services/VaaS/index.html create mode 100644 chaski/services/geolocation.nix create mode 100644 chaski/services/gtfs.nix create mode 100644 chaski/services/jitsi.nix create mode 100644 chaski/services/uplcg.nix create mode 100644 chaski/services/woitb.nix create mode 100644 chaski/services/woitb/index.html create mode 100644 chaski/services/woitb/info.html (limited to 'chaski') diff --git a/chaski/configuration.nix b/chaski/configuration.nix new file mode 100644 index 0000000..fa51fdf --- /dev/null +++ b/chaski/configuration.nix @@ -0,0 +1,48 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, pkgs, ... }: + +{ + imports = + [ # Include the results of the hardware scan. + ./hardware-configuration.nix + # ./services/jitsi.nix + ./services/uplcg.nix + ./services/woitb.nix + ./services/geolocation.nix + ./services/gtfs.nix + ]; + + networking.firewall.allowedTCPPorts = [ 80 443 ]; + + services.nginx.appendHttpConfig = '' + access_log off; + add_header Permissions-Policy "interest-cohort=()"; + ''; + + # Use the GRUB 2 boot loader. + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + + networking.hostName = "chaski"; # Define your hostname. + + # The global useDHCP flag is deprecated, therefore explicitly set to false here. + # Per-interface useDHCP will be mandatory in the future, so this generated config + # replicates the default behaviour. + networking.useDHCP = false; + networking.interfaces.ens10.useDHCP = true; + networking.interfaces.ens3.useDHCP = true; + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It‘s perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "20.09"; # Did you read the comment? + + boot.loader.grub.devices = [ "/dev/sda" ]; + +} diff --git a/chaski/hardware-configuration.nix b/chaski/hardware-configuration.nix new file mode 100644 index 0000000..54fbcba --- /dev/null +++ b/chaski/hardware-configuration.nix @@ -0,0 +1,23 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "xhci_pci" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/5beea4aa-5ea3-4518-9b7d-97f289be92ea"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + +} diff --git a/chaski/ilztal.live/geolocation/index.html b/chaski/ilztal.live/geolocation/index.html new file mode 100644 index 0000000..052a9fa --- /dev/null +++ b/chaski/ilztal.live/geolocation/index.html @@ -0,0 +1,179 @@ + + +
+ + +
+ Latitude:
+ Longitude:
+ Altitude:
+ Accuracy:
+ Speed:
+ Angle:
+
+ + +
+ + + + + + +