mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-22 13:53:09 +02:00
some schtuff
Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
This commit is contained in:
parent
4c7c8fbf1f
commit
0b60064e08
6 changed files with 62 additions and 11 deletions
|
@ -16,6 +16,7 @@ in {
|
||||||
( import ./services/forge.nix inputs )
|
( import ./services/forge.nix inputs )
|
||||||
( import ./services/cloud.nix inputs )
|
( import ./services/cloud.nix inputs )
|
||||||
( import ./services/vaultwarden.nix inputs )
|
( import ./services/vaultwarden.nix inputs )
|
||||||
|
( import ./services/matrix.nix inputs )
|
||||||
# ( import ./services/caddy.nix inputs ) # doesn't work
|
# ( import ./services/caddy.nix inputs ) # doesn't work
|
||||||
# ( import ./services/dnsmasq.nix inputs ) # borks my DNS
|
# ( import ./services/dnsmasq.nix inputs ) # borks my DNS
|
||||||
# ( import ./services/mail-server.nix inputs ) # needs a lot of DNS configs from cloudflaer, I only have 3 rules
|
# ( import ./services/mail-server.nix inputs ) # needs a lot of DNS configs from cloudflaer, I only have 3 rules
|
||||||
|
@ -62,17 +63,18 @@ in {
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "titan"; # Define your hostname.
|
hostName = "titan"; # Define your hostname.
|
||||||
|
domain = "gra.phite.ro";
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
|
||||||
hosts = {
|
# hosts = {
|
||||||
"192.168.0.221" = [ "pi" "pi-master" ];
|
# "192.168.0.221" = [ "pi" "pi-master" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
nameservers = [
|
# nameservers = [
|
||||||
"192.168.1.221"
|
# "192.168.1.221"
|
||||||
];
|
# ];
|
||||||
};
|
};
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
@ -129,6 +131,7 @@ in {
|
||||||
"wheel"
|
"wheel"
|
||||||
"vboxusers"
|
"vboxusers"
|
||||||
"input"
|
"input"
|
||||||
|
"uinput"
|
||||||
];
|
];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
hashedPassword = "$6$OBjnSQhhJgHsr5LE$jFtUz.2qv0l2viv86exXmfHWC0fDFXKD3rqH41NmqgkdoBrwY2rPkDBCPjdq7PSoeudYcQ0nXxJvh1N7EIUs90";
|
hashedPassword = "$6$OBjnSQhhJgHsr5LE$jFtUz.2qv0l2viv86exXmfHWC0fDFXKD3rqH41NmqgkdoBrwY2rPkDBCPjdq7PSoeudYcQ0nXxJvh1N7EIUs90";
|
||||||
|
@ -332,6 +335,10 @@ in {
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# create a oneshot job to authenticate to Tailscale
|
# create a oneshot job to authenticate to Tailscale
|
||||||
|
|
|
@ -23,10 +23,11 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ /* {
|
swapDevices = [
|
||||||
|
{
|
||||||
device = "/var/lib/swapfile";
|
device = "/var/lib/swapfile";
|
||||||
size = 64 * 1024;
|
size = 64 * 1024;
|
||||||
} */
|
}
|
||||||
{
|
{
|
||||||
device = "/dev/sda2";
|
device = "/dev/sda2";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,10 @@ inputs: { pkgs, config, ... }: {
|
||||||
extraTrustedDomains = [
|
extraTrustedDomains = [
|
||||||
"cloud.gra.phite.ro"
|
"cloud.gra.phite.ro"
|
||||||
];
|
];
|
||||||
|
overwriteProtocol = "https";
|
||||||
};
|
};
|
||||||
extraApps = with config.services.nextcloud.package.packages.apps; {
|
extraApps = with config.services.nextcloud.package.packages.apps; {
|
||||||
inherit news files_markdown files_texteditor forms maps memories music onlyoffice polls;
|
inherit news files_markdown files_texteditor forms maps memories music onlyoffice polls calendar tasks;
|
||||||
};
|
};
|
||||||
/*
|
/*
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
|
|
|
@ -17,6 +17,11 @@ inputs: { config, pkgs, ... }: {
|
||||||
appName = "Graphite's Forge";
|
appName = "Graphite's Forge";
|
||||||
domain = "git.gra.phite.ro";
|
domain = "git.gra.phite.ro";
|
||||||
rootUrl = "https://git.gra.phite.ro";
|
rootUrl = "https://git.gra.phite.ro";
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
HTTP_PORT = 3004;
|
||||||
|
};
|
||||||
|
};
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
36
hosts/titan/services/matrix.nix
Normal file
36
hosts/titan/services/matrix.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
inputs: { pkgs, ... }: {
|
||||||
|
services.postgresql.enable = true;
|
||||||
|
services.postgresql.initialScript = pkgs.writeText "synapse-init.sql" ''
|
||||||
|
CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
|
||||||
|
CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
|
||||||
|
TEMPLATE template0
|
||||||
|
LC_COLLATE = "C"
|
||||||
|
LC_CTYPE = "C";
|
||||||
|
'';
|
||||||
|
services.matrix-synapse = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
registration_shared_secret_path = "/var/synapse/.synapseregsec";
|
||||||
|
server_name = "gra.phite.ro";
|
||||||
|
public_baseurl = "https://matrix.gra.phite.ro";
|
||||||
|
listeners = [
|
||||||
|
{
|
||||||
|
port = 3003;
|
||||||
|
bind_addresses = [ "127.0.0.1" ];
|
||||||
|
|
||||||
|
# Caddy handles HTTPS and TLS
|
||||||
|
type = "http";
|
||||||
|
tls = false;
|
||||||
|
|
||||||
|
x_forwarded = true;
|
||||||
|
resources = [
|
||||||
|
{
|
||||||
|
names = [ "client" "federation" ];
|
||||||
|
compress = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -186,6 +186,7 @@ in {
|
||||||
vesktop
|
vesktop
|
||||||
ktailctl
|
ktailctl
|
||||||
caddy
|
caddy
|
||||||
|
floorp
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue