← Back to list

configuration.nix

Syntax: code | Views: 4 | Expires: Never | Created: 2026-03-12 20:47

{ config, modulesPath, pkgs, lib, ... }:
{
  imports = [ 
     (modulesPath + "/virtualisation/proxmox-lxc.nix") # Came with Proxmox
     ./hardware-configuration.nix
     ./matrix.nix
     ];
  nix.settings = { sandbox = false; }; #More Promox Stuff
  proxmoxLXC = {
    manageNetwork = false;
    privileged = true;
  };
  services.fstrim.enable = false; # Let Proxmox host handle fstrim
  
  services.openssh = {
    enable = true;
    openFirewall = true;
    settings = {
        PermitRootLogin = "yes";
        PasswordAuthentication = true;
        PermitEmptyPasswords = "yes";
    };
  };

  services.nginx.enable = true;

  networking.hostName = "nixos-matrix";
  networking.networkmanager.enable = true;

  time.timeZone = "America/Vancouver";

  users.users.dwhacks = {
    isNormalUser = true;
    extraGroups = ["wheel"];
  };
  
  
  # Cache DNS lookups to improve performance
  services.resolved = {
    extraConfig = ''
      Cache=true
      CacheFromLocalhost=true
    '';
  };
 security.acme = {
    acceptTerms = true;
    defaults.email = "forsakenrider@hotmail.com";
  };
 environment.systemPackages = with pkgs; [
  # ... other packages
  neofetch
  git
 ];

  system.stateVersion = "25.11";
}