nix-config/hosts/nixedo/configuration.nix

74 lines
1.4 KiB
Nix
Raw Normal View History

2024-12-28 09:26:54 +00:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
2025-04-29 14:55:08 +01:00
{ pkgs, ... }:
2024-12-28 09:26:54 +00:00
{
imports = [
../common
2024-12-28 09:26:54 +00:00
./hardware-configuration.nix
./modules
./secrets.nix
2025-04-26 00:26:43 +01:00
./services
2025-04-05 09:00:00 +01:00
../../users/opdavies.nix
2024-12-28 09:26:54 +00:00
];
nixosModules = {
core.openssh.enable = true;
cli.podman.enable = true;
desktop.dconf.enable = true;
2025-04-30 01:10:02 +01:00
homelab = {
enable = true;
baseDomain = "oliverdavies.uk";
services = {
audiobookshelf.enable = true;
forgejo = {
enable = true;
cloudflared.tunnelId = "e1514105-327f-4984-974e-e2fbaca76466";
};
immich.enable = true;
jellyfin.enable = true;
paperless.enable = true;
uptime-kuma.enable = true;
};
};
};
services.logind.lidSwitchExternalPower = "ignore";
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
2024-12-28 09:26:54 +00:00
};
systemd-boot.enable = true;
2024-12-28 09:26:54 +00:00
};
networking.networkmanager.enable = true;
2025-04-26 00:26:54 +01:00
users.users.opdavies.extraGroups = [ "media" ];
2025-04-28 12:58:12 +01:00
powerManagement.powertop.enable = true;
2024-12-28 09:26:54 +00:00
users.groups.media = { };
2025-04-29 02:24:03 +01:00
networking.firewall.allowedTCPPorts = [
80
443
];
2025-04-29 14:55:08 +01:00
environment.systemPackages = with pkgs; [
tree
vim
];
2024-12-28 09:26:54 +00:00
}