Website and related stuff https://kyouma.net
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
emily 49227bab05
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/f1010e0469db743d14519a1efd37e23f8513d714?narHash=sha256-doPgfj%2B7FFe9rfzWo1siAV2mVCasW%2BBh8I1cToAXEE4%3D' (2024-05-09)
  → 'github:nixos/nixpkgs/062ca2a9370a27a35c524dc82d540e6e9824b652?narHash=sha256-VsVAUQOj/cS1LCOmMjAGeRksXIAdPnFIjCQ0XLkCsT0%3D' (2024-05-11)
7 days ago
src css spacing 4 months ago
.gitignore refactor some stuff 4 months ago
README.md added readme 4 months ago
flake.lock flake.lock: Update 7 days ago
flake.nix added hydraJobs 7 days ago

README.md

Deploying using NixOS

Requirements:

  • flakes
  • Have the inputs attrset avaiable in the module args.

Add this flake to your inputs:

inputs.kyouma-www.url = "git+https://git.bsd.gay/snaki/kyouma-net";

Import the module and declare your config:

{ inputs, config, ... }:

let 
  kyouma-www = inputs.kyouma-www.packages.${config.nixpkgs.hostPlatform.system};
in {
  imports = [
    inputs.kyouma-www.nixosModules.default
  ];
  services.vyosBld = {
    enable = true;
    output = "/var/www/example.org/vyos";
    buildFlags = {
      architecture = "amd64";
      build-by = "foo@example.org";
      build-type = "release";
      version = "1.5-$(date %Y%m%d)";
    };
  };
  services.nginx = {
    "example.org" = {
      root = kyouma-www.default; 
      locations = {
        "/assets/media/".root = kyouma-www.vid;
        "/vyos/" = {
          root = config.services.vyosBld.output;
          extraConfig = ''
            autoindex on;
            autoindex_exact_size off;
          '';
        };
      };
    };
  };
}