Changes
4 changed files (+42/-62)
-
-
@@ -154,13 +154,13 @@}; }; # Back up home dir to the cloud too # TODO: back up latest snapshot as well # Back up stuff to the cloud too systemd.user.services.rclone = { wantedBy = [ "default.target" ]; serviceConfig = { ExecStart = "${pkgs.rclone}/bin/rclone sync . crypt: --transfers 32 --track-renames --track-renames-strategy modtime --copy-links --exclude '.*{/**,}'"; }; script = '' ln -sf $(printf %s\\n /.snapshots/ROOT.* | tail -n1)/srv Documents/Backups ${pkgs.rclone}/bin/rclone sync . crypt: --transfers 32 --track-renames --track-renames-strategy modtime --copy-links --exclude '.*{/**,}' ''; }; systemd.user.timers.rclone = { wantedBy = [ "timers.target" ];
-
@@ -194,26 +194,6 @@''; }; # TODO: delete this eventually # TODO: Delete this eventually nixpkgs.config.permittedInsecurePackages = [ "olm-3.2.16" ]; # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # # Most users should NEVER change this value after the initial install, for any reason, # even if you've upgraded your system to a new NixOS release. # # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how # to actually do that. # # This value being lower than the current NixOS release does NOT mean your system is # out of date, out of support, or vulnerable. # # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, # and migrated your data accordingly. # # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "24.11"; # Did you read the comment? }
-
-
-
@@ -7,7 +7,7 @@{ disko.devices.disk.main = { imageSize = "3G"; imageSize = "2500M"; type = "disk"; device = "/dev/vda"; content = {
-
@@ -63,6 +63,9 @@"xen-kbdfront" ]; # TODO: BAD! Get rid of this! nix.settings.trusted-users = [ "@wheel" ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; # Overlays! Fixed points! nixpkgs.overlays = [ (import ./overlays.nix) ];
-
@@ -95,6 +98,7 @@services.journald.extraConfig = "SystemMaxUse=1G"; # TODO: open firewall ports? networking.firewall.allowedTCPPorts = [ 80 443 ]; services.caddy = { enable = true; package = pkgs.caddy.withPlugins {
-
@@ -102,12 +106,6 @@hash = "sha256-X8QbRc2ahW1B5niV8i3sbfpe1OPYoaQ4LwbfeaWvfjg="; }; environmentFile = "/etc/caddy/env"; globalConfig = '' acme_dns porkbun { api_key {env.PORKBUN_API_KEY} api_secret_key {env.PORKBUN_API_SECRET_KEY} } ''; virtualHosts = { "unnamed.website".extraConfig = '' root * /srv/http/www
-
@@ -137,6 +135,12 @@log ''; "*.unnamed.website".extraConfig = '' tls { dns porkbun { api_key {env.PORKBUN_API_KEY} api_secret_key {env.PORKBUN_API_SECRET_KEY} } } root * /srv/http/{labels.2} handle /cgi-bin/* { reverse_proxy unix//run/fcgiwrap-cgit-cgit.sock {
-
@@ -162,8 +166,8 @@services.nginx.enable = lib.mkForce false; # cgit also already sets up fcgiwrap services.fcgiwrap.instances.cgit-cgit.socket = { socket.user = "caddy"; socket.group = "caddy"; user = lib.mkForce "caddy"; group = lib.mkForce "caddy"; }; services.cgit.cgit = { enable = true;
-
@@ -214,24 +218,4 @@volume."/".subvolume = "."; }; }; # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # # Most users should NEVER change this value after the initial install, for any reason, # even if you've upgraded your system to a new NixOS release. # # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how # to actually do that. # # This value being lower than the current NixOS release does NOT mean your system is # out of date, out of support, or vulnerable. # # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, # and migrated your data accordingly. # # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "24.11"; # Did you read the comment? }
-
-
-
@@ -77,12 +77,8 @@services.syncthing.enable = true; # Disable the system service services.syncthing.systemService = false; systemd.user.services.syncthing = { wantedBy = [ "default.target" ]; # Enable it for users # https://github.com/NixOS/nixpkgs/issues/21460 unitConfig.ConditionUser = "!@system"; }; # TODO: this is wrong # systemd.services."syncthing@a".enable = true; # THE ONLY CORRECT BACKUP METHOD services.btrbk.instances.btrbk = {
-
@@ -114,4 +110,24 @@]; } ]; # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # # Most users should NEVER change this value after the initial install, for any reason, # even if you've upgraded your system to a new NixOS release. # # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how # to actually do that. # # This value being lower than the current NixOS release does NOT mean your system is # out of date, out of support, or vulnerable. # # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, # and migrated your data accordingly. # # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "24.11"; # Did you read the comment? }
-
-
-
@@ -6,7 +6,7 @@# Use `nix flake update` to update the flake to the latest revision of the chosen release channel. nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # Building an image for XVM # For building an image for XVM # https://lantian.pub/en/article/modify-computer/nixos-low-ram-vps.lantian/ disko.url = "github:nix-community/disko/latest"; disko.inputs.nixpkgs.follows = "nixpkgs";
-