mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 19:11:54 -05:00
Aly Raffauf
ba1d6fe0fd
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* base: limit systemd-boot configurations to 10
* home/gnome: cleanup
* home/gnome: move extesniosn to hm module
* home/gnome: fix nesting
* home/gnome: add cs adjuster
* nixos/gnome: simplify fprintd fixes
* Revert "nixos/gnome: simplify fprintd fixes"
This reverts commit 540ba39bf9
.
* home/gnome: enable extensions with dconf
* nixos/gnome: update triple buffer overlay hash
86 lines
1.6 KiB
Nix
86 lines
1.6 KiB
Nix
self: {lib, ...}: {
|
|
boot = {
|
|
consoleLogLevel = 0;
|
|
initrd.verbose = false;
|
|
loader.systemd-boot.configurationLimit = lib.mkDefault 10;
|
|
plymouth.enable = true;
|
|
};
|
|
|
|
console.useXkbConfig = true;
|
|
hardware.keyboard.qmk.enable = true;
|
|
|
|
programs = {
|
|
gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
nh.enable = true;
|
|
};
|
|
|
|
nix = {
|
|
gc = {
|
|
automatic = true;
|
|
dates = "daily";
|
|
options = "--delete-older-than 3d";
|
|
persistent = true;
|
|
randomizedDelaySec = "60min";
|
|
};
|
|
|
|
# Run GC when there is less than 100MiB left.
|
|
extraOptions = ''
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
'';
|
|
|
|
optimise.automatic = true;
|
|
|
|
settings = {
|
|
auto-optimise-store = false;
|
|
experimental-features = ["nix-command" "flakes"];
|
|
};
|
|
};
|
|
|
|
security = {
|
|
polkit.enable = true;
|
|
rtkit.enable = true;
|
|
};
|
|
|
|
services = {
|
|
avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
|
|
publish = {
|
|
enable = true;
|
|
addresses = true;
|
|
userServices = true;
|
|
workstation = true;
|
|
};
|
|
};
|
|
|
|
logind.extraConfig = ''
|
|
# Don't shutdown when power button is short-pressed
|
|
HandlePowerKey=suspend
|
|
HandlePowerKeyLongPress=poweroff
|
|
'';
|
|
|
|
openssh = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
settings.PasswordAuthentication = false;
|
|
};
|
|
|
|
printing.enable = true;
|
|
system-config-printer.enable = true;
|
|
};
|
|
|
|
sound.enable = true;
|
|
|
|
zramSwap = {
|
|
enable = lib.mkDefault true;
|
|
memoryPercent = lib.mkDefault 50;
|
|
};
|
|
}
|