Reorganization

This commit is contained in:
Lucas Thelen 2025-10-04 00:49:49 +00:00
parent 2821a76450
commit aa3b8519f9
21 changed files with 241 additions and 204 deletions

11
modules/core/boot.nix Normal file
View file

@ -0,0 +1,11 @@
# Boot configuration
{ config, lib, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}

14
modules/core/packages.nix Normal file
View file

@ -0,0 +1,14 @@
# System-wide packages
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
neovim
vimPlugins.LazyVim
git
wget
nixfmt-classic
btop
lazygit
];
}

View file

@ -0,0 +1,15 @@
# Server power management - disable sleep/hibernation
{ config, lib, pkgs, ... }:
{
# Don't turn off when lid is closed (for laptop servers)
services.logind.lidSwitchExternalPower = "ignore";
# Disable all sleep modes - this is a server!
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
}