mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-01-13 19:08:25 +01:00
Compare commits
7 Commits
add-skrott
...
48a5f4e79e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48a5f4e79e | ||
|
|
29c4029486 | ||
|
|
a3c3ceac49 | ||
|
|
7f3d288a15 | ||
|
|
f9f2304939 | ||
|
|
02c752e596 | ||
|
|
e44b2e8d0d |
@@ -214,11 +214,11 @@ in {
|
|||||||
"= /favicon.ico".alias = pkgs.runCommandLocal "mediawiki-favicon.ico" {
|
"= /favicon.ico".alias = pkgs.runCommandLocal "mediawiki-favicon.ico" {
|
||||||
buildInputs = with pkgs; [ imagemagick ];
|
buildInputs = with pkgs; [ imagemagick ];
|
||||||
} ''
|
} ''
|
||||||
convert \
|
magick \
|
||||||
|
${fp /assets/logo_blue_regular.png} \
|
||||||
-resize x64 \
|
-resize x64 \
|
||||||
-gravity center \
|
-gravity center \
|
||||||
-crop 64x64+0+0 \
|
-crop 64x64+0+0 \
|
||||||
${fp /assets/logo_blue_regular.png} \
|
|
||||||
-flatten \
|
-flatten \
|
||||||
-colors 256 \
|
-colors 256 \
|
||||||
-background transparent \
|
-background transparent \
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ in {
|
|||||||
|
|
||||||
echo "Creating thumbnail for $fname"
|
echo "Creating thumbnail for $fname"
|
||||||
mkdir -p $(dirname ".thumbnails/$fname")
|
mkdir -p $(dirname ".thumbnails/$fname")
|
||||||
convert -define jpeg:size=200x200 "$fname" -thumbnail 300 -auto-orient ".thumbnails/$fname.png" ||:
|
magick -define jpeg:size=200x200 "$fname" -thumbnail 300 -auto-orient ".thumbnails/$fname.png" ||:
|
||||||
touch -m -d "$(date -R -r "$fname")" ".thumbnails/$fname.png"
|
touch -m -d "$(date -R -r "$fname")" ".thumbnails/$fname.png"
|
||||||
done <<< "$images"
|
done <<< "$images"
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ in
|
|||||||
zip = false;
|
zip = false;
|
||||||
keep = 10;
|
keep = 10;
|
||||||
bare = true;
|
bare = true;
|
||||||
lfs = true;
|
lfs = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
instances = let
|
instances = let
|
||||||
@@ -59,7 +59,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.cgit = let
|
services.cgit = let
|
||||||
domain = "bicep.pvv.ntnu.no";
|
domain = "mirrors.pvv.ntnu.no";
|
||||||
in {
|
in {
|
||||||
${domain} = {
|
${domain} = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -81,7 +81,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."bicep.pvv.ntnu.no" = {
|
services.nginx.virtualHosts."mirrors.pvv.ntnu.no" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ in
|
|||||||
in toString small-pvv-logo;
|
in toString small-pvv-logo;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."fcgiwrap-cgit-bicep.pvv.ntnu.no" = {
|
systemd.services."fcgiwrap-cgit-mirrors.pvv.ntnu.no" = {
|
||||||
serviceConfig.BindReadOnlyPaths = [ cfg.dataDir ];
|
serviceConfig.BindReadOnlyPaths = [ cfg.dataDir ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
(fp /modules/grzegorz.nix)
|
(fp /modules/grzegorz.nix)
|
||||||
];
|
];
|
||||||
|
services.spotifyd.enable = true;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ in {
|
|||||||
enablePipewire = true;
|
enablePipewire = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.restart-greg-ng = {
|
||||||
|
script = "systemctl --user restart greg-ng.service";
|
||||||
|
startAt = "*-*-* 06:30:00";
|
||||||
|
};
|
||||||
|
|
||||||
services.grzegorz-webui = {
|
services.grzegorz-webui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
listenAddr = "localhost";
|
listenAddr = "localhost";
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
bottom
|
bottom
|
||||||
eza
|
eza
|
||||||
neovim
|
neovim
|
||||||
diskonaut
|
|
||||||
ripgrep
|
ripgrep
|
||||||
tmux
|
tmux
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user