Add an 8G swapfile for headroom during nix builds (7.7G RAM, no prior swap) and bring nodejs (bundles npm) into the development profile. Also picks up latest flake.lock input updates. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C5fRUDLRzDhoKhEqa69cyR
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
|
|
./disks.nix
|
|
./hardware-configuration.nix
|
|
./environments.nix
|
|
./network.nix
|
|
./secrets.nix
|
|
# ./system.nix use docker here
|
|
];
|
|
|
|
networking.hostName = "mibook";
|
|
|
|
swapDevices = [
|
|
{
|
|
device = "/var/lib/swapfile";
|
|
size = 8 * 1024; # 8G, headroom for nix builds (7.7G RAM, no prior swap)
|
|
}
|
|
];
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "/dev/nvme0n1";
|
|
useOSProber = true;
|
|
};
|
|
|
|
# Configure keymap in X11
|
|
services.xserver.xkb = {
|
|
layout = "de";
|
|
variant = "";
|
|
};
|
|
|
|
# Configure console keymap
|
|
console.keyMap = "de";
|
|
|
|
# Enable CUPS to print documents.
|
|
services.printing.enable = true;
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
hardware.nvidia.prime = {
|
|
sync.enable = false;
|
|
|
|
nvidiaBusId = "PCI:01:00:0";
|
|
intelBusId = "PCI:00:2:0";
|
|
};
|
|
|
|
services.openssh.enable = true;
|
|
|
|
# KDE (PowerDevil) power settings: do nothing on lid close while on AC power.
|
|
# Shipped as a system-wide default; KConfig cascades so a user's own
|
|
# ~/.config/powerdevilrc will override this if present.
|
|
environment.etc."xdg/powerdevilrc".text = ''
|
|
[AC][SuspendAndShutdown]
|
|
LidAction=0
|
|
'';
|
|
|
|
system = {
|
|
stateVersion = "23.05";
|
|
autoUpgrade.enable = true;
|
|
};
|
|
}
|