mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
73 lines
1.6 KiB
Nix
73 lines
1.6 KiB
Nix
{pkgs, ...}: {
|
|
imports = [
|
|
./fonts.nix
|
|
./nix.nix
|
|
./impermanence.nix
|
|
];
|
|
|
|
security.sudo.wheelNeedsPassword = true;
|
|
security.sudo.extraConfig = ''
|
|
Defaults lecture="never"
|
|
'';
|
|
|
|
boot.loader = {
|
|
# Hide the boot loader and show it only on keypress.
|
|
timeout = 0;
|
|
systemd-boot = {
|
|
enable = true;
|
|
configurationLimit = 4;
|
|
# A real mode for hidpi
|
|
consoleMode = "max";
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
# Using arch's google api key. Waiting for https://github.com/NixOS/nixpkgs/issues/321121 to be fixed.
|
|
services.geoclue2.geoProviderUrl = "https://www.googleapis.com/geolocation/v1/geolocate?key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM";
|
|
# needed for geoclue, see https://github.com/NixOS/nixpkgs/issues/329522
|
|
services.avahi.enable = true;
|
|
services.automatic-timezoned.enable = true;
|
|
|
|
programs.dconf.enable = true;
|
|
services.dbus.enable = true;
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
docker-compose
|
|
git
|
|
man-pages
|
|
man-pages-posix
|
|
vim
|
|
tmux
|
|
jq
|
|
mosh
|
|
];
|
|
|
|
programs.zsh.enable = true;
|
|
environment.shells = with pkgs; [zsh];
|
|
programs.command-not-found.enable = false;
|
|
|
|
services.locate = {
|
|
enable = true;
|
|
package = pkgs.mlocate;
|
|
interval = "hourly";
|
|
localuser = null;
|
|
};
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
documentation = {
|
|
enable = true;
|
|
dev.enable = true;
|
|
man = {
|
|
enable = true;
|
|
generateCaches = true;
|
|
};
|
|
info.enable = true;
|
|
nixos.enable = true;
|
|
};
|
|
}
|