2023-08-17 21:46:39 +05:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./users.nix
|
|
|
|
./time.nix
|
2024-05-10 12:04:02 +05:00
|
|
|
|
|
|
|
./networking/network.nix
|
2024-05-10 13:43:41 +05:00
|
|
|
./networking/unbound.nix
|
2024-05-10 12:04:02 +05:00
|
|
|
./networking/wireguard.nix
|
2024-03-11 21:51:42 +05:00
|
|
|
|
|
|
|
./databases/postgres.nix
|
|
|
|
./databases/mysql.nix
|
|
|
|
./databases/redis.nix
|
|
|
|
|
2023-08-17 21:46:39 +05:00
|
|
|
./programs/acme.nix
|
2024-05-10 11:48:01 +05:00
|
|
|
./programs/bash.nix
|
2023-08-22 10:50:50 +05:00
|
|
|
./programs/docker.nix
|
2024-05-10 11:48:01 +05:00
|
|
|
./programs/nginx.nix
|
2024-03-03 20:05:50 +05:00
|
|
|
|
2024-03-11 22:05:46 +05:00
|
|
|
./monitoring/grafana.nix
|
|
|
|
./monitoring/prometheus.nix
|
2024-05-10 11:48:01 +05:00
|
|
|
|
2024-05-31 15:10:32 +05:00
|
|
|
./services/archivebox.nix
|
2024-05-10 11:48:01 +05:00
|
|
|
./services/comfycamp.nix
|
|
|
|
./services/deluge.nix
|
|
|
|
./services/forgejo.nix
|
|
|
|
./services/freshrss.nix
|
|
|
|
./services/jellyfin.nix
|
|
|
|
./services/maddy.nix
|
|
|
|
./services/mastodon.nix
|
|
|
|
./services/microboard.nix
|
2024-07-25 18:48:03 +05:00
|
|
|
./services/minecraft.nix
|
2024-05-10 11:48:01 +05:00
|
|
|
./services/nextcloud.nix
|
2024-05-10 18:08:37 +05:00
|
|
|
./services/openssh.nix
|
2024-05-10 11:48:01 +05:00
|
|
|
./services/phoenix.nix
|
|
|
|
./services/prosody.nix
|
|
|
|
./services/ss.nix
|
|
|
|
./services/synapse.nix
|
|
|
|
./services/yggdrasil.nix
|
2024-05-10 17:20:44 +05:00
|
|
|
|
2024-05-10 17:23:03 +05:00
|
|
|
./private/photoprism.nix
|
2024-05-10 17:20:44 +05:00
|
|
|
./private/vaultwarden.nix
|
2023-08-17 21:46:39 +05:00
|
|
|
];
|
|
|
|
|
2024-02-29 21:45:20 +05:00
|
|
|
nix = {
|
|
|
|
# Enable flakes
|
|
|
|
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
# Garbage collection
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
optimise = {
|
|
|
|
automatic = true;
|
|
|
|
dates = [ "03:00" ];
|
|
|
|
};
|
|
|
|
};
|
2023-08-17 21:46:39 +05:00
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
# $ nix search wget
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wget
|
|
|
|
curl
|
|
|
|
neovim
|
|
|
|
htop
|
|
|
|
git
|
|
|
|
rsync
|
|
|
|
imagemagick
|
|
|
|
dig
|
|
|
|
iptables
|
|
|
|
cryptsetup
|
|
|
|
ffmpeg
|
2023-08-18 09:59:23 +05:00
|
|
|
file
|
2023-08-22 10:11:36 +05:00
|
|
|
vips
|
2023-08-22 10:13:18 +05:00
|
|
|
go
|
2023-08-22 10:20:41 +05:00
|
|
|
pkg-config
|
2023-10-04 23:47:46 +05:00
|
|
|
deluged
|
2023-08-17 21:46:39 +05:00
|
|
|
];
|
|
|
|
|
2023-11-29 23:20:12 +05:00
|
|
|
powerManagement.powertop.enable = true;
|
|
|
|
|
2023-08-17 21:46:39 +05:00
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|