tangled
alpha
login
or
join now
encode42.dev
/
nixos
0
fork
atom
Personal-use NixOS configuration
0
fork
atom
overview
issues
pulls
pipelines
Run formatter
encode42.dev
5 months ago
dd01d7fb
60feafa1
+11
-4
2 changed files
expand all
collapse all
unified
split
lib
default.nix
mkProxies.nix
+5
-1
lib/default.nix
···
1
1
-
{ nix-jetbrains-plugins, pkgs, lib }:
1
1
+
{
2
2
+
nix-jetbrains-plugins,
3
3
+
pkgs,
4
4
+
lib,
5
5
+
}:
2
6
3
7
{
4
8
customJetbrainsPackage = import ./customJetbrainsPackage.nix {
+6
-3
lib/mkProxies.nix
···
8
8
compressionModules = import (caddyModulesPath + /compression.nix);
9
9
sslModules = import (caddyModulesPath + /ssl.nix);
10
10
11
11
-
insertLocalSubdomain = host:
11
11
+
insertLocalSubdomain =
12
12
+
host:
12
13
let
13
14
domainLevels = lib.splitString "." host;
14
15
totalLevels = (lib.length domainLevels - 2);
15
16
in
16
16
-
lib.concatStringsSep "." (lib.take totalLevels domainLevels ++ [ "local" ] ++ lib.drop totalLevels domainLevels);
17
17
+
lib.concatStringsSep "." (
18
18
+
lib.take totalLevels domainLevels ++ [ "local" ] ++ lib.drop totalLevels domainLevels
19
19
+
);
17
20
in
18
21
builtins.listToAttrs (
19
22
map (host: {
···
30
33
'';
31
34
};
32
35
}) hosts
33
33
-
)
36
36
+
)