mirror of
https://codeberg.org/privacy1st/nix-git
synced 2025-04-02 16:55:59 +02:00
58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{ config, pkgs, ... }:
|
|
let
|
|
user = config.yoda.user;
|
|
in
|
|
{
|
|
imports = [
|
|
./base-minimal.nix
|
|
|
|
# Filesystem settings.
|
|
./btrfsScrub.nix
|
|
|
|
# DNS settings.
|
|
#
|
|
# TODO add nix option
|
|
./dns.nix # Encrypted DNS queries to custom name servers.
|
|
#./dns-unencrypted.nix # Custom name servers.
|
|
|
|
# Shell settings.
|
|
./bash.nix # bash settings.
|
|
./zsh.nix # zsh as default shell for $user and root.
|
|
./fzf.nix # Fuzzy command history and file search.
|
|
|
|
# nixpkgs config
|
|
./home-manager.nix
|
|
|
|
# Nix garbage collection.
|
|
./nix-gc.nix
|
|
# Display contact information during boot.
|
|
./initrd-contact-info.nix
|
|
];
|
|
|
|
# Enables wireless support via wpa_supplicant.
|
|
# networking.wireless.enable = true;
|
|
#
|
|
# Enable networking.
|
|
networking.networkmanager.enable = true;
|
|
#
|
|
users.users."${user}" = {
|
|
extraGroups = [ "networkmanager" ];
|
|
};
|
|
|
|
# Optimise nix store during every build. This may slow down builds.
|
|
# https://nixos.wiki/wiki/Storage_optimization
|
|
nix.settings.auto-optimise-store = true;
|
|
|
|
# fix for this warning
|
|
# download buffer is full; consider increasing the 'download-buffer-size' setting
|
|
# https://nix.dev/manual/nix/2.23/command-ref/conf-file#conf-download-buffer-size
|
|
# default: 2^26
|
|
# Increased to 2^29 = 536870912 ~ 500MB
|
|
nix.settings.download-buffer-size = 536870912;
|
|
|
|
# Firewall.
|
|
# https://nixos.wiki/wiki/Firewall
|
|
# Note: Firewall rules may be bypassed/overwritten by Docker, as per https://github.com/NixOS/nixpkgs/issues/111852
|
|
networking.firewall.enable = true;
|
|
}
|