nixos/system/default.nix

94 lines
2 KiB
Nix
Raw Normal View History

2024-01-30 14:21:50 +00:00
{pkgs, ...}: {
imports = [./registry.nix ./stylix.nix];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking = {
networkmanager.enable = true;
firewall.enable = true;
2024-01-30 14:21:50 +00:00
nameservers = ["9.9.9.9"];
};
environment = {
2024-03-08 08:10:36 +00:00
sessionVariables = {
XDG_CONFIG_HOME = "$HOME/.config";
XDG_CACHE_HOME = "$HOME/.cache";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
};
systemPackages = with pkgs; [
coreutils
libsecret
gnumake
git
git-sync
pinentry
zip
unzip
fd
ripgrep
2024-01-03 19:19:58 +00:00
rclone
wireguard-tools
2023-12-27 15:44:01 +00:00
dogdns
du-dust
ffmpeg
nitch
neofetch
2023-12-17 18:32:56 +00:00
bottom
nix-output-monitor
];
localBinInPath = true;
};
console.keyMap = "uk";
programs = {
command-not-found.enable = false;
ssh.startAgent = true;
nano = {
enable = true;
syntaxHighlight = true;
nanorc = ''
set nowrap
set tabstospaces
set tabsize 2
'';
};
};
services = {
2024-01-21 14:10:14 +00:00
passSecretService.enable = true;
upower.enable = true;
power-profiles-daemon.enable = true;
2023-10-20 22:33:34 +01:00
system76-scheduler = {
enable = true;
useStockConfig = true;
};
};
virtualisation.podman.enable = true;
time.timeZone = "Europe/London";
2024-01-30 14:21:50 +00:00
i18n = let
locale = "en_GB.UTF-8";
in {
# Select internationalisation properties.
defaultLocale = locale;
extraLocaleSettings = {
LC_ADDRESS = locale;
LC_IDENTIFICATION = locale;
LC_MEASUREMENT = locale;
LC_MONETARY = locale;
LC_NAME = locale;
LC_NUMERIC = locale;
LC_PAPER = locale;
LC_TELEPHONE = locale;
LC_TIME = locale;
};
};
fonts = {
packages = with pkgs; [
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];}) # Status bar
emacs-all-the-icons-fonts # Emacs
weather-icons # Emacs
lmodern # LaTeX
];
fontconfig.enable = true;
};
}