move packages to modules

This commit is contained in:
Grimmauld 2024-05-08 21:13:13 +02:00
parent 2435182a68
commit 7a7818c0c7
Signed by: Grimmauld
GPG Key ID: C2946668769F91FB
4 changed files with 24 additions and 15 deletions

View File

@ -39,18 +39,12 @@ in {
environment.systemPackages = with pkgs; [
wget
hyfetch
vulnix
vulnix #
tree
file
util-linux
btop
linuxPackages.perf
gitea
matrix-synapse-tools.synadm
matrix-synapse
pufferpanel
(writeShellScriptBin "pufferpanel-nix" "pufferpanel --workDir /var/lib/pufferpanel $@")
];
environment.sessionVariables = {
@ -60,13 +54,19 @@ in {
networking.firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
allowPing = true;
allowedUDPPortRanges = [];
};
# services.nginx.package = pkgs.nginxStable.override { openssl = pkgs.libressl; };
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.hostName = "grimmauld-nixos-server";
networking.domain = "grimmauld.de";
services.openssh.enable = true;
system.stateVersion = "23.11";
services.nginx = {
# package = pkgs.nginxStable.override { openssl = pkgs.libressl; };
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
@ -86,12 +86,9 @@ in {
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
boot.tmp.cleanOnBoot = true;
system.stateVersion = "unstable";
zramSwap.enable = true;
networking.hostName = "grimmauld-nixos-server";
networking.domain = "grimmauld.de";
services.openssh.enable = true;
# users.users.root.openssh.authorizedKeys.keys = (import ./authorizedKeys.nix);
# users.users.root.openssh.authorizedKeys.keys = (import ./authorizedKeys.nix);
}

View File

@ -27,6 +27,10 @@ in {
lfs.enable = true;
};
environment.systemPackages = with pkgs; [
gitea
];
security.acme.certs."${domain}".extraDomainNames = [ gitea_host];
networking.firewall.allowedTCPPorts = [ gitea_ssh_port ];

View File

@ -111,6 +111,10 @@ host replication all ::1/128 md5
mode = "0600";
};
environment.systemPackages = with pkgs; [
matrix-synapse-tools.synadm
matrix-synapse
];
services.nginx = {
enable = true;

View File

@ -43,4 +43,8 @@ in {
# virtualisation.podman.enable = true;
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
pufferpanel
(writeShellScriptBin "pufferpanel-nix" "pufferpanel --workDir /var/lib/pufferpanel $@")
];
}