See video: https://www.youtube.com/watch?v=BAQ78pBPjjc
In BIOS, under security, set "Enforce secure boot" to "disabled".
Keyboard layout for boot env:
localectl list-keymaps | grep uk
loadkeys uk
| { config, pkgs, modulesPath, lib, system, ... }: | |
| { | |
| imports = [ | |
| (modulesPath + "/profiles/qemu-guest.nix") | |
| ]; | |
| config = { | |
| #Provide a default hostname | |
| networking.hostName = lib.mkDefault "base"; |
See video: https://www.youtube.com/watch?v=BAQ78pBPjjc
In BIOS, under security, set "Enforce secure boot" to "disabled".
Keyboard layout for boot env:
localectl list-keymaps | grep uk
loadkeys uk
| ## Setting up the middleware for redirect to https ## | |
| http: | |
| middlewares: | |
| redirect: | |
| redirectScheme: | |
| scheme: https |
| version: "3.3" | |
| services: | |
| ################################################ | |
| #### Traefik Proxy Setup ##### | |
| ############################################### | |
| traefik: | |
| image: traefik:v2.0 | |
| restart: always |
| # Fetch and fill config | |
| mikrotik_vpn_config=$(curl https://gist.github.com/elmariofredo/7232556/raw/VPN-L2TP-IPSEC.mikrotik \ | |
| | sed -e ' | |
| s/IPSEC_PEER_SECRET/somesecret/g; | |
| s/USER1_NAME/mario/g; | |
| s/USER1_PASS/somepass/g; | |
| s/IP_RANGE/172.16.24.100-172.16.24.200/g; | |
| s/DNS_SERVER/172.16.22.1/g; | |
| s/LOCAL_ADDRESS/172.16.22.1/g; | |
| s/WINS_SERVER/172.16.22.1/g') |