nixos-config/configs/nixos/ni/default.nix
Gabriel Arazas 7a06117ad4
Some checks failed
Build devcontainers / build-devcontainers (push) Has been cancelled
Cache outputs / build-custom-packages (push) Has been cancelled
Check flake outputs / check-outputs (push) Has been cancelled
Publish every Git push to master to FlakeHub / flakehub-publish (push) Has been cancelled
Build personalized bootstrap ISO / build-iso (x86_64-linux) (push) Has been cancelled
Build project site / build (push) Has been cancelled
Build project site / deploy (push) Has been cancelled
Update flake inputs / update (push) Has been cancelled
hosts/ni/services/dns-server: init
2025-01-01 16:26:59 +08:00

56 lines
1.3 KiB
Nix

{ config, pkgs, lib, foodogsquaredModulesPath, ... }:
{
imports = [
"${foodogsquaredModulesPath}/profiles/desktop"
# Include the results of the hardware scan.
./hardware-configuration.nix
# Include the disko configuration.
./disko.nix
# My host-specific modules.
./modules
];
hosts.ni = {
hardware.qol.enable = true;
networking.enable = true;
services.backup.enable = true;
services.monitoring.enable = true;
services.mail-archive.enable = true;
services.reverse-proxy.enable = true;
services.download-media.enable = true;
services.rss-reader.enable = true;
services.dns-server.enable = true;
setups = {
desktop.enable = true;
development.enable = true;
music.enable = true;
gaming.enable = true;
};
};
state.paths = {
cacheDir = "/var/cache";
dataDir = "/var/lib";
logDir = "/var/log";
runtimeDir = "/run";
};
# Enable the display manager of choice.
services.xserver.displayManager.gdm.enable = true;
# The keyfile required for the secrets to be decrypted.
sops.age.keyFile = "/var/lib/sops-nix/key";
# Enable Nix channels.
nix.channel.enable = true;
# Make Nix experimental.
nix.package = pkgs.nixStable;
system.stateVersion = "24.05"; # Yes! I read the comment!
}