initial server config
This commit is contained in:
commit
8f6d63909a
10 changed files with 313 additions and 0 deletions
34
configuration.nix
Normal file
34
configuration.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./system.nix
|
||||
./services/caddy.nix
|
||||
./services/immich.nix
|
||||
./services/vaultwarden.nix
|
||||
./services/forgejo.nix
|
||||
];
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 ];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/data 0775 daniel users -"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
git
|
||||
];
|
||||
|
||||
environment.shellAliases = {
|
||||
rebuild = "sudo nixos-rebuild switch --flake ~/server-config#server";
|
||||
rebuild-test = "sudo nixos-rebuild test --flake ~/server-config#server";
|
||||
rebuild-dry = "nixos-rebuild dry-run --flake ~/server-config#server";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue