Compare commits

...

15 Commits

Author SHA1 Message Date
nyanloutre 94ab3f04fe ajout amandoline-creations.fr 2023-02-16 17:31:01 +01:00
nyanloutre 0ae3cd7ba4 redirect www.musique-meyenheim.fr 2023-02-16 17:30:46 +01:00
nyanloutre 2fac85824a install photoprism from unstable 2023-02-16 17:13:06 +01:00
nyanloutre 4d7fc25aaf remove riot 2023-02-16 17:11:20 +01:00
nyanloutre a8b8356e0d flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ab1254087f4cdf4af74b552d7fc95175d9bdbb49' (2023-01-22)
  → 'github:NixOS/nixpkgs/c43f676c938662072772339be6269226c77b51b8' (2023-02-14)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/1b1f50645af2a70dc93eae18bfd88d330bfbcf7f' (2023-01-23)
  → 'github:NixOS/nixpkgs/545c7a31e5dedea4a6d372712a18e00ce097d462' (2023-02-13)
2023-02-16 17:04:00 +01:00
nyanloutre ea61674cff flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6a3f9996408c970b99b8b992b11bb249d1455b62' (2023-01-12)
  → 'github:NixOS/nixpkgs/ab1254087f4cdf4af74b552d7fc95175d9bdbb49' (2023-01-22)
• Updated input 'nixpkgs-photoprism':
    'github:Stunkymonkey/nixpkgs/2dc710c13cfd1f33b16439c84afd9eafeb3371f2' (2023-01-12)
  → 'github:Stunkymonkey/nixpkgs/0214f02419f80674ffcaa26e9f20769a56b5f0c1' (2023-01-15)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/6c8644fc37b6e141cbfa6c7dc8d98846c4ff0c2e' (2023-01-11)
  → 'github:NixOS/nixpkgs/1b1f50645af2a70dc93eae18bfd88d330bfbcf7f' (2023-01-23)
2023-01-26 20:42:59 +01:00
nyanloutre 734f54f69f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/2dea8991d89b9f1e78d874945f78ca15f6954289' (2023-01-06)
  → 'github:NixOS/nixpkgs/6a3f9996408c970b99b8b992b11bb249d1455b62' (2023-01-12)
• Updated input 'nixpkgs-photoprism':
    'github:Stunkymonkey/nixpkgs/9f3d8078ecec6f757b6fde1734f258913e062be2' (2023-01-01)
  → 'github:Stunkymonkey/nixpkgs/2dc710c13cfd1f33b16439c84afd9eafeb3371f2' (2023-01-12)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/a518c77148585023ff56022f09c4b2c418a51ef5' (2023-01-05)
  → 'github:NixOS/nixpkgs/6c8644fc37b6e141cbfa6c7dc8d98846c4ff0c2e' (2023-01-11)
2023-01-13 09:53:31 +01:00
nyanloutre 166219459f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e9ade2c8240e00a4784fac282a502efff2786bdc' (2023-01-04)
  → 'github:NixOS/nixpkgs/2dea8991d89b9f1e78d874945f78ca15f6954289' (2023-01-06)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/9813adc7f7c0edd738c6bdd8431439688bb0cb3d' (2023-01-04)
  → 'github:NixOS/nixpkgs/a518c77148585023ff56022f09c4b2c418a51ef5' (2023-01-05)
2023-01-07 23:34:55 +01:00
nyanloutre d97d8a5949 add photoprism url 2023-01-05 11:28:10 +01:00
nyanloutre a449f29502 remove backup mount and add photoprism mount 2023-01-05 11:26:51 +01:00
nyanloutre 0cddbf1def flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/913a47cd064cc06440ea84e5e0452039a85781f0' (2022-12-29)
  → 'github:NixOS/nixpkgs/e9ade2c8240e00a4784fac282a502efff2786bdc' (2023-01-04)
• Updated input 'nixpkgs-photoprism':
    'github:Stunkymonkey/nixpkgs/6805f176fcc4b3673f23df5ee67caccc24bfba8c' (2022-12-24)
  → 'github:Stunkymonkey/nixpkgs/9f3d8078ecec6f757b6fde1734f258913e062be2' (2023-01-01)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/e182da8622a354d44c39b3d7a542dc12cd7baa5f' (2022-12-28)
  → 'github:NixOS/nixpkgs/9813adc7f7c0edd738c6bdd8431439688bb0cb3d' (2023-01-04)
2023-01-05 11:26:51 +01:00
nyanloutre 884498f573 Update 'systems/LoutreOS/services.nix' 2023-01-05 11:25:26 +01:00
nyanloutre 3d472d07c2 Update 'systems/LoutreOS/configuration.nix' 2023-01-05 11:18:09 +01:00
nyanloutre eff9aadf90 Update 'systems/LoutreOS/configuration.nix' 2023-01-05 11:13:39 +01:00
nyanloutre 09ec8c3554 Add 'overlays/transmission.nix' 2023-01-05 11:11:22 +01:00
8 changed files with 43 additions and 95 deletions

View File

@ -75,11 +75,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1672353432, "lastModified": 1676375384,
"narHash": "sha256-oZfgp/44/o2tWiylV30cR+DLyWTJ+5dhsdWZVpzs3e4=", "narHash": "sha256-6HI3jZiuJX+KLz05cocYy2mBAWlISEKHU84ftYfxHZ8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "913a47cd064cc06440ea84e5e0452039a85781f0", "rev": "c43f676c938662072772339be6269226c77b51b8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -88,29 +88,13 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs-photoprism": {
"locked": {
"lastModified": 1671922246,
"narHash": "sha256-Xh/pWG2mdheCtJZFmuuZIsvR9PVgs15Rn6yt/G1lINc=",
"owner": "Stunkymonkey",
"repo": "nixpkgs",
"rev": "6805f176fcc4b3673f23df5ee67caccc24bfba8c",
"type": "github"
},
"original": {
"owner": "Stunkymonkey",
"ref": "photoprism-module-init",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1672262501, "lastModified": 1676300157,
"narHash": "sha256-ZNXqX9lwYo1tOFAqrVtKTLcJ2QMKCr3WuIvpN8emp7I=", "narHash": "sha256-1HjRzfp6LOLfcj/HJHdVKWAkX9QRAouoh6AjzJiIerU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e182da8622a354d44c39b3d7a542dc12cd7baa5f", "rev": "545c7a31e5dedea4a6d372712a18e00ce097d462",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -124,7 +108,6 @@
"dogetipbot-telegram": "dogetipbot-telegram", "dogetipbot-telegram": "dogetipbot-telegram",
"ipmihddtemp": "ipmihddtemp", "ipmihddtemp": "ipmihddtemp",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-photoprism": "nixpkgs-photoprism",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"simple-nixos-mailserver": "simple-nixos-mailserver", "simple-nixos-mailserver": "simple-nixos-mailserver",
"utils": "utils_2" "utils": "utils_2"

View File

@ -2,7 +2,6 @@
inputs = { inputs = {
nixpkgs.url = "flake:nixpkgs/nixos-22.11"; nixpkgs.url = "flake:nixpkgs/nixos-22.11";
nixpkgs-unstable.url = "flake:nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "flake:nixpkgs/nixos-unstable";
nixpkgs-photoprism.url = "github:Stunkymonkey/nixpkgs/photoprism-module-init";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus/v1.3.1"; utils.url = "github:gytis-ivaskevicius/flake-utils-plus/v1.3.1";
simple-nixos-mailserver = { simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-22.11"; url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-22.11";
@ -21,7 +20,7 @@
}; };
}; };
outputs = inputs@{ self, utils, nixpkgs, nixpkgs-unstable, nixpkgs-photoprism, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: utils.lib.mkFlake { outputs = inputs@{ self, utils, nixpkgs, nixpkgs-unstable, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: utils.lib.mkFlake {
inherit self inputs; inherit self inputs;
@ -47,7 +46,7 @@
]; ];
hosts.loutreos.modules = [ hosts.loutreos.modules = [
"${nixpkgs-photoprism}/nixos/modules/services/web-apps/photoprism.nix" "${nixpkgs-unstable}/nixos/modules/services/web-apps/photoprism.nix"
simple-nixos-mailserver.nixosModule simple-nixos-mailserver.nixosModule
dogetipbot-telegram.nixosModule dogetipbot-telegram.nixosModule
ipmihddtemp.nixosModule ipmihddtemp.nixosModule

View File

@ -1,15 +0,0 @@
self: super:
{
riot-web = super.riot-web.override {
conf = {
default_hs_url = "https://matrix.nyanlout.re";
default_is_url = "https://vector.im";
brand = "Nyanloutre";
default_theme = "dark";
integrations_ui_url = "https://dimension.t2bot.io/riot";
integrations_rest_url = "https://dimension.t2bot.io/api/v1/scalar";
integrations_widgets_urls = ["https://dimension.t2bot.io/widgets"];
integrations_jitsi_widget_url = "https://dimension.t2bot.io/widgets/jitsi";
};
};
}

View File

@ -0,0 +1,8 @@
self: super:
{
transmission = (super.transmission.overrideAttrs (oA: {
patches = [];
})).override {
openssl = super.openssl_legacy;
};
}

View File

@ -163,7 +163,7 @@
}; };
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ../../overlays/riot-web.nix) (import ../../overlays/transmission.nix)
]; ];
services.openssh = { services.openssh = {

View File

@ -123,10 +123,10 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/mnt/backup" = # fileSystems."/mnt/backup" =
{ device = "backup"; # { device = "backup";
fsType = "zfs"; # fsType = "zfs";
}; # };
fileSystems."/mnt/backup_loutre" = fileSystems."/mnt/backup_loutre" =
{ device = "loutrepool/backup"; { device = "loutrepool/backup";
@ -158,6 +158,11 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/var/lib/private/photoprism" =
{ device = "loutrepool/var/photoprism";
fsType = "zfs";
};
fileSystems."/mnt/paul-home" = fileSystems."/mnt/paul-home" =
{ device = "loutrepool/zfs-replicate/paul-fixe/fastaf/home"; { device = "loutrepool/zfs-replicate/paul-fixe/fastaf/home";
fsType = "zfs"; fsType = "zfs";

View File

@ -549,9 +549,10 @@ in
photoprism = { photoprism = {
enable = true; enable = true;
originalsPath = "/mnt/backup_loutre/amandoleen/d/Users/Amand/Pictures"; originalsPath = "/mnt/backup_loutre/amandoleen/d/Users/Amand/Pictures";
extraConfig = { settings = {
PHOTOPRISM_AUTH_MODE = "public"; PHOTOPRISM_AUTH_MODE = "public";
PHOTOPRISM_READONLY = true; PHOTOPRISM_READONLY = "1";
PHOTOPRISM_SITE_URL = "https://photo.nyanlout.re/";
}; };
}; };
}; };

View File

@ -224,7 +224,6 @@ in
''; '';
}; };
} // { default = true; }; } // { default = true; };
"riot.nyanlout.re" = base { "/" = { root = pkgs.element-web; }; };
"factorio.nyanlout.re" = base { "/" = { root = "/var/www/factorio"; }; }; "factorio.nyanlout.re" = base { "/" = { root = "/var/www/factorio"; }; };
"minecraft.nyanlout.re" = base { "/" = { root = "/var/www/minecraft-overviewer"; }; }; "minecraft.nyanlout.re" = base { "/" = { root = "/var/www/minecraft-overviewer"; }; };
"musique-meyenheim.fr" = base { "musique-meyenheim.fr" = base {
@ -238,6 +237,11 @@ in
alias = "/var/www/site-musique/media/"; alias = "/var/www/site-musique/media/";
}; };
}; };
"www.musique-meyenheim.fr" = {
enableACME = true;
forceSSL = true;
globalRedirect = "musique-meyenheim.fr";
};
# "maxspiegel.fr" = base { "/" = { root = "/run/python-ci/nyanloutre/site-max"; }; }; # "maxspiegel.fr" = base { "/" = { root = "/run/python-ci/nyanloutre/site-max"; }; };
"stream.nyanlout.re" = base { "stream.nyanlout.re" = base {
"/" = { "/" = {
@ -323,52 +327,15 @@ in
} }
]; ];
"designyourfuture.amandoline-creations.fr" = base { "designyourfuture.amandoline-creations.fr" = base {
"/".alias = "/var/www/amandoleene-designyourfuture/"; "/".alias = "/var/www/amandoline-designyourfuture/";
# "/" = { };
# priority = 200; "amandoline-creations.fr" = base {
# extraConfig = '' "/".alias = "/var/www/amandoline-portfolio/";
# try_files $uri $uri/ /index.php$is_args$args; };
# ''; "www.amandoline-creations.fr" = {
# }; enableACME = true;
# "~ \\.php$" = { forceSSL = true;
# priority = 500; globalRedirect = "amandoline-creations.fr";
# extraConfig = ''
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_pass unix:${config.services.phpfpm.pools."wordpress-designyourfuture".socket};
# fastcgi_index index.php;
# include "${config.services.nginx.package}/conf/fastcgi.conf";
# fastcgi_param PATH_INFO $fastcgi_path_info;
# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
# # Mitigate https://httpoxy.org/ vulnerabilities
# fastcgi_param HTTP_PROXY "";
# fastcgi_intercept_errors off;
# fastcgi_buffer_size 16k;
# fastcgi_buffers 4 16k;
# fastcgi_connect_timeout 300;
# fastcgi_send_timeout 300;
# fastcgi_read_timeout 300;
# '';
# };
# "~ /\\." = {
# priority = 800;
# extraConfig = "deny all;";
# };
# "~* /(?:uploads|files)/.*\\.php$" = {
# priority = 900;
# extraConfig = "deny all;";
# };
# "~* \\.(js|css|png|jpg|jpeg|gif|ico)$" = {
# priority = 1000;
# extraConfig = ''
# expires max;
# log_not_found off;
# '';
# };
} // {
# root = "/var/www/wordpress-designyourfuture";
# extraConfig = ''
# index index.php;
# '';
}; };
}; };
}; };