2023-08-17 21:46:39 +05:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./networking.nix
|
|
|
|
./users.nix
|
|
|
|
./fail2ban.nix
|
|
|
|
./time.nix
|
|
|
|
./programs/nginx.nix
|
|
|
|
./programs/bash.nix
|
|
|
|
./programs/acme.nix
|
2023-08-17 22:37:52 +05:00
|
|
|
./programs/postgres.nix
|
2023-08-18 09:59:23 +05:00
|
|
|
./programs/mastodon.nix
|
|
|
|
./programs/redis.nix
|
2023-08-18 17:54:34 +05:00
|
|
|
./programs/nextcloud.nix
|
2023-08-18 21:13:48 +05:00
|
|
|
./programs/jellyfin.nix
|
2023-08-19 08:53:07 +05:00
|
|
|
./programs/mysql.nix
|
2023-08-17 21:46:39 +05:00
|
|
|
];
|
|
|
|
|
|
|
|
# Enable flakes
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
# 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-17 21:46:39 +05:00
|
|
|
];
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|