Update server configuration

This commit is contained in:
thiloho
2023-08-04 20:44:41 +02:00
parent d7c19fa670
commit f786202e0d
5 changed files with 37 additions and 35 deletions

View File

@@ -10,11 +10,7 @@
networking.hostName = "pc"; networking.hostName = "pc";
home-manager.users.thiloho = { pkgs, lib, ... }: { home-manager.users.thiloho = { pkgs, lib, ... }: {
# programs.git = { programs.git.signing.key = "1617CEF3B3EE7083";
# signing = {
# key = "A6C6D25B9687377B";
# };
# };
home.stateVersion = "23.05"; home.stateVersion = "23.05";
}; };
system.stateVersion = "23.05"; system.stateVersion = "23.05";

View File

@@ -8,10 +8,6 @@
nix.settings.trusted-users = [ "thiloho" ]; nix.settings.trusted-users = [ "thiloho" ];
security.sudo.extraConfig = ''
%wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL
'';
networking = { networking = {
hostName = "server"; hostName = "server";
firewall = { firewall = {
@@ -20,6 +16,10 @@
}; };
services = { services = {
openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
minecraft-server = { minecraft-server = {
enable = true; enable = true;
eula = true; eula = true;
@@ -35,10 +35,6 @@
white-list = true; white-list = true;
}; };
}; };
openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
nginx = { nginx = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
@@ -54,15 +50,29 @@
}; };
}; };
}; };
nextcloud = {
enable = true;
hostName = "cloud.thilohohlt.com";
database.createLocally = true;
config = {
dbtype = "pgsql";
adminpassFile = "/root/nextcloud-database-password.txt";
};
};
}; };
security.acme = { security = {
acceptTerms = true; acme = {
defaults.email = "thilo.hohlt@tutanota.com"; acceptTerms = true;
defaults.email = "thilo.hohlt@tutanota.com";
};
sudo.extraConfig = ''
%wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL
'';
}; };
users.users.thiloho.openssh.authorizedKeys.keys = [ users.users.thiloho.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH22p7+RCaEYZjxWzZ3SE9byCkqfT9SPq7Ht47XmCM9s thiloho@ThilosPC" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP8j7z4RBSjoBcB5btwGodYu5J/Yprng8oBhy47iXWq+ thiloho@pc"
]; ];
home-manager.users.thiloho = { pkgs, lib, ... }: { home-manager.users.thiloho = { pkgs, lib, ... }: {

View File

@@ -53,12 +53,6 @@
favorite-apps = [ favorite-apps = [
"org.gnome.Console.desktop" "org.gnome.Console.desktop"
"org.gnome.Nautilus.desktop" "org.gnome.Nautilus.desktop"
"code.desktop"
"firefox.desktop"
"chromium-browser.desktop"
"psensor.desktop"
"steam.desktop"
"org.prismlauncher.PrismLauncher.desktop"
]; ];
}; };
"org/gnome/desktop/background" = { "org/gnome/desktop/background" = {
@@ -93,14 +87,9 @@
listboots = "nix profile history --profile /nix/var/nix/profiles/system"; listboots = "nix profile history --profile /nix/var/nix/profiles/system";
}; };
}; };
firefox.enable = true;
chromium = { chromium = {
enable = true; enable = true;
extensions = [ package = pkgs.google-chrome;
{ id = "mmbiohbmijkiimgcgijfomelgpmdiigb"; } # Hotkeys
{ id = "dhdgffkkebhmkfjojejmpbldmpobfkfo"; } # Tampermonkey
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # uBlock Origin
];
}; };
vscode = { vscode = {
enable = true; enable = true;
@@ -113,6 +102,10 @@
"editor.tabSize" = 2; "editor.tabSize" = 2;
}; };
}; };
obs-studio = {
enable = true;
# plugins = with pkgs; [];
};
}; };
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
@@ -123,6 +116,9 @@
ventoy-full ventoy-full
psensor psensor
quickemu quickemu
discord
element-desktop
spotify
]; ];
}; };
}; };

View File

@@ -24,6 +24,12 @@
extraGroups = [ "wheel" "networkmanager" "docker" ]; extraGroups = [ "wheel" "networkmanager" "docker" ];
}; };
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "gnome3";
};
home-manager.users.thiloho = { ... }: { home-manager.users.thiloho = { ... }: {
programs = { programs = {
git = { git = {

View File

@@ -19,12 +19,6 @@
networking.hostName = "ThilosPC"; networking.hostName = "ThilosPC";
users.users.thiloho.isNormalUser = true; users.users.thiloho.isNormalUser = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "gnome3";
};
home-manager.users.thiloho = { pkgs, lib, config, ... }: { home-manager.users.thiloho = { pkgs, lib, config, ... }: {
programs = { programs = {