Compare commits
2 commits
21dc584199
...
e1c02d7a91
| Author | SHA1 | Date | |
|---|---|---|---|
| e1c02d7a91 | |||
| 4dfc898140 |
10 changed files with 48 additions and 18 deletions
|
|
@ -9,11 +9,11 @@
|
|||
shareFqdn = "muse.lava.moe";
|
||||
subnetId = "5";
|
||||
|
||||
subnet = x: "fd0d:1::${subnetId}:${toString x}";
|
||||
subnet = x: "fd0d:2::${subnetId}:${toString x}";
|
||||
host = subnet 1;
|
||||
client = subnet 2;
|
||||
|
||||
subnet4 = x: "10.30.${subnetId}.${toString x}";
|
||||
subnet4 = x: "10.32.${subnetId}.${toString x}";
|
||||
host4 = subnet4 1;
|
||||
client4 = subnet4 2;
|
||||
|
||||
|
|
@ -39,13 +39,7 @@
|
|||
useACMEHost = "lava.moe";
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://[${client}]:4533";
|
||||
listenAddresses = [ "10.0.0.1" "[fd0d::1]" "100.67.1.1" ];
|
||||
};
|
||||
services.nginx.virtualHosts."${shareFqdn}" = {
|
||||
useACMEHost = "lava.moe";
|
||||
forceSSL = true;
|
||||
locations."/".return = "404";
|
||||
locations."/share/".proxyPass = "http://[${client}]:4533";
|
||||
listenAddresses = [ "100.67.2.1" ];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [ "d /persist/containers/${name} 755 root users" ];
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
age.secrets = {
|
||||
acme_dns.file = ../../secrets/acme_dns.age;
|
||||
passwd.file = ../../secrets/passwd.age;
|
||||
navidrome_env.file = ../../secrets/navidrome_env.age;
|
||||
wpa_conf = {
|
||||
file = ../../secrets/wpa_conf.age;
|
||||
path = "/etc/wpa_supplicant/imperative.conf";
|
||||
|
|
@ -27,6 +28,7 @@
|
|||
modules.services.nginx
|
||||
modules.services.syncthing
|
||||
|
||||
inputs.c-emerald.nixosModule
|
||||
inputs.c-garnet.nixosModule
|
||||
|
||||
./filesystem.nix
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
age.secrets = {
|
||||
acme_dns.file = ../../secrets/acme_dns.age;
|
||||
navidrome_env.file = ../../secrets/navidrome_env.age;
|
||||
slskd_env.file = ../../secrets/slskd_env.age;
|
||||
wg_dandelion.file = ../../secrets/wg_dandelion.age;
|
||||
};
|
||||
|
|
@ -31,12 +30,12 @@
|
|||
inputs.c-beryllium.nixosModule
|
||||
inputs.c-citrine.nixosModule
|
||||
inputs.c-diamond.nixosModule
|
||||
inputs.c-emerald.nixosModule
|
||||
inputs.c-fluorite.nixosModule
|
||||
|
||||
./filesystem.nix
|
||||
./kernel.nix
|
||||
./networking.nix
|
||||
./nginx.nix
|
||||
|
||||
../../users/hana
|
||||
];
|
||||
|
|
|
|||
8
hosts/dandelion/nginx.nix
Normal file
8
hosts/dandelion/nginx.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }: {
|
||||
services.nginx.virtualHosts."muse.lava.moe" = {
|
||||
useACMEHost = "lava.moe";
|
||||
forceSSL = true;
|
||||
locations."/".return = "404";
|
||||
locations."/share/".proxyPass = "http://[fd0d:2::5:2]:4533";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{ config, lib, pkgs, ... }: {
|
||||
{ config, inputs, pkgs, ... }: {
|
||||
nix = {
|
||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||
package = pkgs.nixVersions.latest;
|
||||
|
||||
settings = rec {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, sysConfig, ... }:
|
||||
let
|
||||
luaconf = pkgs.writeText "config.lua"
|
||||
(lib.replaceStrings
|
||||
["{{OMNISHARP_PATH}}" "{{DART_PATH}}" "{{CATPPUCCIN_FLAVOUR}}"]
|
||||
["${pkgs.omnisharp-roslyn}/bin/OmniSharp" "${pkgs.dart}/bin/dart" config.catppuccin.nvim.flavor]
|
||||
["{{OMNISHARP_PATH}}" "{{DART_PATH}}" "{{CATPPUCCIN_FLAVOUR}}" "{{USERNAME}}" "{{HOSTNAME}}"]
|
||||
["${pkgs.omnisharp-roslyn}/bin/OmniSharp" "${pkgs.dart}/bin/dart" config.catppuccin.nvim.flavor config.home.username sysConfig.networking.hostName]
|
||||
(builtins.readFile ../../res/config.lua));
|
||||
in {
|
||||
systemd.user.tmpfiles.rules = [
|
||||
|
|
@ -21,6 +21,7 @@ in {
|
|||
withRuby = false;
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
nixd
|
||||
rust-analyzer
|
||||
texlab
|
||||
astro-language-server
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ vim.diagnostic.config({
|
|||
|
||||
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||
|
||||
local servers = { 'astro', 'clangd', 'cssls', 'html', 'nil_ls', 'tailwindcss', 'texlab', 'ts_ls', 'yamlls' }
|
||||
local servers = { 'astro', 'clangd', 'cssls', 'html', 'tailwindcss', 'texlab', 'ts_ls', 'yamlls' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
vim.lsp.config(lsp, {
|
||||
capabilities = capabilities,
|
||||
|
|
@ -292,6 +292,32 @@ vim.lsp.config("diagnosticls", {
|
|||
})
|
||||
vim.lsp.enable("diagnosticls")
|
||||
|
||||
-- LSP/nixd
|
||||
vim.lsp.config("nixd", {
|
||||
cmd = { "nixd" },
|
||||
filetypes = { "nix" },
|
||||
root_markers = { "flake.nix", ".git" },
|
||||
settings = {
|
||||
nixd = {
|
||||
nixpkgs = {
|
||||
expr = "import <nixpkgs> { }",
|
||||
},
|
||||
formatting = {
|
||||
command = { "nixfmt" },
|
||||
},
|
||||
options = {
|
||||
nixos = {
|
||||
expr = '(builtins.getFlake (toString ./.)).nixosConfigurations.{{HOSTNAME}}.options',
|
||||
},
|
||||
home_manager = {
|
||||
expr = '(builtins.getFlake (builtins.toString ./.)).nixosConfigurations."{{USERNAME}}@{{HOSTNAME}}".options.home-manager.users.type.getSubOptions []',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.lsp.enable("nixd")
|
||||
|
||||
-- LSP/Signatures
|
||||
require("lsp_signature").setup {
|
||||
hint_enable = false,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ in {
|
|||
"secrets/wpa_conf.age".publicKeys = [ alyssum blossom rin ];
|
||||
|
||||
"secrets/acme_dns.age".publicKeys = [ alyssum dandelion hazel rin ];
|
||||
"secrets/navidrome_env.age".publicKeys = [ anemone dandelion rin ];
|
||||
"secrets/navidrome_env.age".publicKeys = [ alyssum dandelion rin ];
|
||||
"secrets/slskd_env.age".publicKeys = [ anemone dandelion rin ];
|
||||
"secrets/tailscale_auth.age".publicKeys = [ alyssum anemone blossom dandelion rin ];
|
||||
"secrets/warden_admin.age".publicKeys = [ rin ];
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,6 @@ in {
|
|||
ffmpeg
|
||||
gnupg
|
||||
kitty
|
||||
nil
|
||||
nodejs_latest
|
||||
pamixer
|
||||
pnpm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue