Compare commits
2 commits
6a87dd7211
...
da0324ccf9
Author | SHA1 | Date | |
---|---|---|---|
da0324ccf9 | |||
f6ed5e951b |
4 changed files with 26 additions and 5 deletions
|
@ -70,8 +70,6 @@ in
|
|||
neovim
|
||||
ripgrep
|
||||
wget
|
||||
|
||||
ghostty.terminfo
|
||||
];
|
||||
|
||||
hm = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
_utils,
|
||||
...
|
||||
|
@ -22,6 +23,10 @@ in
|
|||
hermetic = false; # hermetic fucks up for cross-system deployments
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
ghostty.terminfo
|
||||
];
|
||||
|
||||
services = {
|
||||
tailscale.extraUpFlags = [ "--advertise-exit-node" ];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
setupSecrets =
|
||||
_config:
|
||||
|
@ -96,4 +96,19 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
# shamelessly stolen from soopyc's gensokyo
|
||||
mkNginxFile =
|
||||
{
|
||||
filename ? "index.html",
|
||||
content,
|
||||
status ? 200,
|
||||
}:
|
||||
{
|
||||
# gets the store path of the directory in which the file is contained
|
||||
# we have to use writeTextDir because we don't want to expose the whole nix store to nginx
|
||||
# and because you can't just return an absolute path to a file
|
||||
alias = builtins.toString (pkgs.writeTextDir filename content) + "/";
|
||||
tryFiles = "${filename} =${builtins.toString status}";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
_utils = import ../global/utils.nix { inherit lib; };
|
||||
mkUtils = import ../global/utils.nix;
|
||||
|
||||
toSystem =
|
||||
name:
|
||||
|
@ -24,7 +24,10 @@ let
|
|||
];
|
||||
|
||||
specialArgs = inputs // {
|
||||
inherit _utils;
|
||||
_utils = mkUtils {
|
||||
inherit lib;
|
||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue