Reorganization
This commit is contained in:
parent
2821a76450
commit
aa3b8519f9
21 changed files with 241 additions and 204 deletions
11
modules/core/boot.nix
Normal file
11
modules/core/boot.nix
Normal 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
14
modules/core/packages.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# System-wide packages
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
vimPlugins.LazyVim
|
||||
git
|
||||
wget
|
||||
nixfmt-classic
|
||||
btop
|
||||
lazygit
|
||||
];
|
||||
}
|
||||
15
modules/core/server-power.nix
Normal file
15
modules/core/server-power.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue