Compare commits
5 Commits
84d9ffe45f
...
5a982e5e24
Author | SHA1 | Date |
---|---|---|
Peder Bergebakken Sundt | 5a982e5e24 | |
Peder Bergebakken Sundt | c46d2a3f36 | |
Peder Bergebakken Sundt | 44f140e63c | |
Peder Bergebakken Sundt | a576db63d1 | |
Peder Bergebakken Sundt | da1c3b4c88 |
|
@ -171,7 +171,7 @@
|
||||||
|
|
||||||
imports = let ifExists = p: if builtins.pathExists p then p else {}; in [
|
imports = let ifExists = p: if builtins.pathExists p then p else {}; in [
|
||||||
./base.nix
|
./base.nix
|
||||||
"${self}/hosts/${hostname}" # (ifExists "${self}/hosts/${hostname}")
|
"${self}/hosts/${hostname}/configuration.nix"
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.home-manager.nixosModule
|
inputs.home-manager.nixosModule
|
||||||
#inputs.nix-index-database.nixosModules.nix-index # TODO: fix?
|
#inputs.nix-index-database.nixosModules.nix-index # TODO: fix?
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
../../profiles/http/services/cinny.nix
|
../../profiles/http/services/cinny.nix
|
||||||
../../profiles/http/services/element.nix
|
../../profiles/http/services/element.nix
|
||||||
../../profiles/http/services/flexget.nix
|
../../profiles/http/services/flexget.nix
|
||||||
../../profiles/http/services/gitea.nix
|
#../../profiles/http/services/gitea.nix
|
||||||
#../../profiles/http/services/hydra.nix
|
#../../profiles/http/services/hydra.nix
|
||||||
../../profiles/http/services/invidious.nix
|
../../profiles/http/services/invidious.nix
|
||||||
#../../profiles/http/services/rss-bridge.nix # TODO: move out of home net
|
#../../profiles/http/services/rss-bridge.nix # TODO: move out of home net
|
8
justfile
8
justfile
|
@ -20,6 +20,14 @@ update:
|
||||||
@mkdir -p .direnv/
|
@mkdir -p .direnv/
|
||||||
@echo "$(date +%Y-%m-%d)" > .direnv/pull-date
|
@echo "$(date +%Y-%m-%d)" > .direnv/pull-date
|
||||||
|
|
||||||
|
@update-select:
|
||||||
|
git reset flake.lock
|
||||||
|
git restore flake.lock
|
||||||
|
nix eval .#inputs --apply builtins.attrNames --json \
|
||||||
|
| jq '.[]' -r \
|
||||||
|
| gum choose --no-limit --height=15 \
|
||||||
|
| xargs nix flake update --commit-lock-file
|
||||||
|
|
||||||
build:
|
build:
|
||||||
nixos-rebuild build --accept-flake-config --show-trace --flake .
|
nixos-rebuild build --accept-flake-config --show-trace --flake .
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
firefox
|
firefox
|
||||||
pavucontrol
|
pavucontrol
|
||||||
lxterminal
|
lxterminal
|
||||||
|
gnome.gnome-tweaks
|
||||||
# TODO: shadow gnome-terminal
|
# TODO: shadow gnome-terminal
|
||||||
ffmpegthumbnailer
|
ffmpegthumbnailer
|
||||||
libheif # HEIF thumbnails
|
libheif # HEIF thumbnails
|
||||||
|
|
|
@ -36,6 +36,14 @@ in
|
||||||
services.nginx.recommendedProxySettings = true;
|
services.nginx.recommendedProxySettings = true;
|
||||||
services.nginx.recommendedTlsSettings = true;
|
services.nginx.recommendedTlsSettings = true;
|
||||||
|
|
||||||
|
# nginx return 444 for all nonexistent virtualhosts
|
||||||
|
services.nginx.virtualHosts."_" = {
|
||||||
|
addSSL = true;
|
||||||
|
sslCertificate = "${pkgs.path}/nixos/tests/common/acme/server/acme.test.cert.pem";
|
||||||
|
sslCertificateKey = "${pkgs.path}/nixos/tests/common/acme/server/acme.test.key.pem";
|
||||||
|
extraConfig = "return 444;";
|
||||||
|
};
|
||||||
|
|
||||||
/** /
|
/** /
|
||||||
services.nginx.virtualHosts."" = {
|
services.nginx.virtualHosts."" = {
|
||||||
default = true;
|
default = true;
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
if test -d "$src"; then
|
if test -d "$src"; then
|
||||||
(set -x
|
(set -x
|
||||||
rm -v "$dst"
|
rm -v "$dst"
|
||||||
cp -r --dereference --one-file-system "$src/" "$dst/" )
|
cp -r --dereference --one-file-system "$src/" "$dst/"
|
||||||
chmod -R +rw "$dst"
|
chmod -R +rw "$dst"
|
||||||
)
|
)
|
||||||
elif test -f "$src"; then
|
elif test -f "$src"; then
|
||||||
|
|
Loading…
Reference in New Issue