Add initial attempt at qgis
Doesn't work, likely due to missing CPU instruction support (AVX).
This commit is contained in:
parent
63bd931034
commit
af1de58c28
5 changed files with 57 additions and 5 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -295,17 +295,17 @@
|
|||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1763748264,
|
||||
"narHash": "sha256-1R1HdllhGMBboOL99dKcWrlCvJUwvxFwevinUB5kowU=",
|
||||
"lastModified": 1765462315,
|
||||
"narHash": "sha256-0JSpnZudJ0y6w4I0s6YoDKo+xnCL3syZvPin40iLo2o=",
|
||||
"owner": "Gleipnir-Technology",
|
||||
"repo": "nidus-sync",
|
||||
"rev": "338f90708e0a70622d69a44592a59f81c978c66e",
|
||||
"rev": "637decea113ba1bbed7b373244f5989e00626f38",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Gleipnir-Technology",
|
||||
"repo": "nidus-sync",
|
||||
"rev": "338f90708e0a70622d69a44592a59f81c978c66e",
|
||||
"rev": "637decea113ba1bbed7b373244f5989e00626f38",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
type = "github";
|
||||
owner = "Gleipnir-Technology";
|
||||
repo = "nidus-sync";
|
||||
rev = "338f90708e0a70622d69a44592a59f81c978c66e";
|
||||
rev = "637decea113ba1bbed7b373244f5989e00626f38";
|
||||
};
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
nixvim = {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
./nidus-sync.nix
|
||||
./openssh.nix
|
||||
./podman.nix
|
||||
./qgis.nix
|
||||
./restic
|
||||
./sillytavern.nix
|
||||
./static-websites.nix
|
||||
|
|
|
|||
50
modules/system/qgis.nix
Normal file
50
modules/system/qgis.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
qgis = pkgs.qgis.override { withServer = true; };
|
||||
in
|
||||
{
|
||||
options.myModules.qgis.enable = mkEnableOption "custom qgis configuration";
|
||||
|
||||
config = mkIf config.myModules.qgis.enable {
|
||||
environment.systemPackages = [
|
||||
qgis
|
||||
pkgs.spawn_fcgi
|
||||
];
|
||||
services.caddy = {
|
||||
#enable = true;
|
||||
#package = pkgs.caddy.withPlugins {
|
||||
#plugins = [ "github.com/aksdb/caddy-cgi@v2.2.6" ];
|
||||
#hash = "sha256-pkq0PIdd4+uSyjXf24rDR6hfVVEg4YMBF6cS38W1vsA=";
|
||||
#};
|
||||
virtualHosts."gis.nidus.cloud".extraConfig = ''
|
||||
route {
|
||||
# Add trailing slash for directory requests
|
||||
# This redirection is automatically disabled if "{http.request.uri.path}/index.php"
|
||||
# doesn't appear in the try_files list
|
||||
#@canonicalPath {
|
||||
#file {path}/index.php
|
||||
#not path */
|
||||
#}
|
||||
#redir @canonicalPath {http.request.orig_uri.path}/ 308
|
||||
|
||||
# If the requested file does not exist, try index files and assume index.php always exists
|
||||
#@indexFiles file {
|
||||
#try_files {path} {path}/index.php index.php
|
||||
#try_policy first_exist_fallback
|
||||
#split_path .php
|
||||
#}
|
||||
#rewrite @indexFiles {file_match.relative}
|
||||
|
||||
# Proxy PHP files to the FastCGI responder
|
||||
#@phpFiles path *.php
|
||||
reverse_proxy * unix//var/run/qgisserver.socket {
|
||||
transport fastcgi {
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -74,6 +74,7 @@ in {
|
|||
|
||||
myModules.asterisk.enable = true;
|
||||
myModules.caddy.enable = true;
|
||||
myModules.qgis.enable = true;
|
||||
myModules.nidus-sync.enable = true;
|
||||
myModules.tegola.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue