dotfiles-nix/modules/core.nix

55 lines
1.1 KiB
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.dotfiles.core;
in
{
options.dotfiles.core = {
enable = lib.mkEnableOption "Core system configuration";
};
config = lib.mkIf cfg.enable {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.consoleLogLevel = 0;
boot.initrd.verbose = false;
boot.kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
time.timeZone = "Europe/Berlin";
networking.networkmanager.enable = true;
services.power-profiles-daemon.enable = true;
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
system.stateVersion = "26.05";
};
}