45 lines
994 B
Nix
45 lines
994 B
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
imports = [
|
|
/etc/nixos/modules/nix.nix
|
|
/etc/nixos/modules/security
|
|
/etc/nixos/modules/dns.nix
|
|
/etc/nixos/modules/ssl.nix
|
|
/etc/nixos/modules/ssh.nix
|
|
/etc/nixos/modules/tailscale.nix
|
|
/etc/nixos/modules/sops.nix
|
|
/etc/nixos/modules/ipfs
|
|
|
|
./hardware-configuration.nix
|
|
./bootloader.nix
|
|
./nginx.nix
|
|
./forgejo.nix
|
|
./user.nix
|
|
];
|
|
|
|
sops.age.keyFile = "/etc/age/key.txt";
|
|
|
|
nix.nixPath = [
|
|
"nixos-config=/etc/nixos/machines/homelab/default.nix"
|
|
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
|
"/nix/var/nix/profiles/per-user/root/channels"
|
|
];
|
|
|
|
services.logind.settings.Login = {
|
|
HandleLidSwitchExternalPower = "ignore";
|
|
HandleLidSwitch = "ignore";
|
|
};
|
|
|
|
networking.hostName = "zomelab";
|
|
networking.networkmanager.enable = true;
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
environment.systemPackages = [
|
|
pkgs.vim
|
|
pkgs.direnv
|
|
pkgs.git
|
|
];
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|