dsi: init
This commit is contained in:
parent
95f3a8b7d6
commit
f6521b8d12
7 changed files with 220 additions and 114 deletions
1
nixos/hosts/dis-sociat-ing/.flags
Normal file
1
nixos/hosts/dis-sociat-ing/.flags
Normal file
|
@ -0,0 +1 @@
|
|||
--option sandbox false
|
1
nixos/hosts/dis-sociat-ing/.target
Normal file
1
nixos/hosts/dis-sociat-ing/.target
Normal file
|
@ -0,0 +1 @@
|
|||
10.100.1.52
|
47
nixos/hosts/dis-sociat-ing/default.nix
Normal file
47
nixos/hosts/dis-sociat-ing/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ inputs, pkgs, config, lib, ... }: {
|
||||
imports = [
|
||||
../../templates/proxmox-lxc.nix
|
||||
../../server.nix
|
||||
../../features/dns-cache.nix
|
||||
inputs.iceshrimp.nixosModules.iceshrimp {}
|
||||
];
|
||||
|
||||
networking.hostName = "dis-sociat-ing";
|
||||
system.stateVersion = "24.05";
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
sops.secrets.db_password = {
|
||||
sopsFile = ../../../secrets/dis-sociat-ing/default.yaml;
|
||||
owner = config.services.iceshrimp.user;
|
||||
group = config.services.iceshrimp.group;
|
||||
mode = "0444";
|
||||
};
|
||||
|
||||
sops.templates."secrets.yaml" = {
|
||||
content = (builtins.toJSON {
|
||||
db = {
|
||||
pass = config.sops.placeholder.db_password;
|
||||
};
|
||||
});
|
||||
owner = config.services.iceshrimp.user;
|
||||
group = config.services.iceshrimp.group;
|
||||
};
|
||||
|
||||
|
||||
# services.iceshrimp = {
|
||||
# enable = true;
|
||||
# package = inputs.iceshrimp.packages.${pkgs.system}.iceshrimp;
|
||||
# settings = {
|
||||
# url = "https://dis.sociat.ing";
|
||||
# enableMetrics = true;
|
||||
# };
|
||||
# dbPasswordFile = config.sops.secrets.db_password.path;
|
||||
# createDb = true;
|
||||
# configureNginx.enable = false;
|
||||
# secretConfig = config.sops.templates."secrets.yaml".path;
|
||||
# };
|
||||
|
||||
services.postgresql.package = pkgs.postgresql_15;
|
||||
services.redis.servers.iceshrimp.logfile = "stdout";
|
||||
boot.kernel.sysctl."net.ipv6.conf.eth0.disable_ipv6" = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue