nixos-config/modules/core/system.nix

70 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2023-11-05 17:56:55 +01:00
{
self,
pkgs,
lib,
inputs,
...
}:
{
2023-11-05 11:40:44 +01:00
nix = {
settings = {
2025-07-28 01:00:22 +02:00
allowed-users = [ "@wheel" ];
2023-11-05 11:40:44 +01:00
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
# substituters = [ "http://violet.booping.local" ];
# trusted-public-keys = [ "violet.booping.local:2gshN3xfGSL7eKFc8tGkqSoIb3WQxuB2RJ8DuakLLqc=%" ];
2023-11-05 11:40:44 +01:00
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
2024-10-21 15:40:49 +02:00
programs.nix-ld = {
enable = true;
libraries = with pkgs; [ ];
};
nixpkgs = {
overlays = [
self.overlays.default
# inputs.nur.overlay
];
};
2024-10-21 15:40:49 +02:00
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"jitsi-meet-1.0.8043"
"olm-3.2.16"
"libsoup-2.74.3"
2024-10-21 15:40:49 +02:00
];
2023-11-05 11:40:44 +01:00
overlays = [
self.overlays.default
inputs.nur.overlay
];
};
# powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2023-11-05 11:40:44 +01:00
i18n.defaultLocale = "en_US.UTF-8";
i18n.supportedLocales = [
"en_US.UTF-8/UTF-8"
"ja_JP.UTF-8/UTF-8"
];
2025-01-14 07:56:54 +01:00
# Font packages
environment.systemPackages = with pkgs; [
noto-fonts-cjk-sans
noto-fonts-cjk-serif
ipaexfont
];
time.timeZone = lib.mkDefault "Europe/Amsterdam";
system.stateVersion = "24.05";
2023-11-05 11:40:44 +01:00
}