nixos/system/default.nix
Evie Litherland-Smith 9e92c21fbd Move some things into separate files, add laptop power management
Move autoUpgrade, nix registry and stylix settings to their own files, only
import autoUpgrade on desktops and server

Add laptop system file to control power management

Move some bits from flake.nix to default.nix and desktop.nix where
appropriate
2024-02-25 06:32:13 +00:00

88 lines
1.8 KiB
Nix

{pkgs, ...}: {
imports = [./registry.nix];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking = {
networkmanager.enable = true;
firewall.enable = true;
nameservers = ["9.9.9.9"];
};
environment = {
systemPackages = with pkgs; [
coreutils
libsecret
gnumake
git
git-sync
pinentry
zip
unzip
fd
ripgrep
rclone
wireguard-tools
dogdns
du-dust
ffmpeg
nitch
bottom
];
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 = {
passSecretService.enable = true;
upower.enable = true;
power-profiles-daemon.enable = true;
system76-scheduler = {
enable = true;
useStockConfig = true;
};
};
virtualisation.podman.enable = true;
time.timeZone = "Europe/London";
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"];})
emacs-all-the-icons-fonts
weather-icons
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
];
fontconfig.enable = true;
};
}