nixos-config/system/default.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

2022-05-03 22:44:29 +02:00
{ config, pkgs, lib, inputs, ... }:
2019-10-19 12:55:35 +02:00
2022-05-03 22:44:29 +02:00
let flakes = lib.filterAttrs (name: value: value ? outputs) inputs;
in {
2021-08-01 14:44:23 +02:00
imports = [
./hardened.nix
./sound.nix
./i18n.nix
./nix.nix
./networking.nix
./vpn.nix
];
2020-03-13 18:45:29 +01:00
2021-05-11 21:17:19 +02:00
environment.systemPackages = with pkgs; [ wget curl openssl neovim ];
2019-10-19 12:55:35 +02:00
# TODO once nerdfonts 2.2.0 is released switch to NerdFontsSymbolsOnly
# Also needs to be added to known fonts in nixpkgs:
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/data/fonts/nerdfonts/shas.nix
2019-10-21 17:51:57 +02:00
fonts.fonts = with pkgs; [
2020-03-24 00:55:49 +01:00
noto-fonts
noto-fonts-extra
noto-fonts-cjk
noto-fonts-emoji
# (nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
(nerdfonts.override { fonts = [ "FiraCode" ]; })
fira-code
2019-10-21 17:51:57 +02:00
];
2020-09-11 14:58:56 +02:00
fonts.fontconfig.defaultFonts = {
serif = [ "Noto Serif" "Noto Color Emoji" ];
sansSerif = [ "Noto Sans" "Noto Color Emoji" ];
# monospace = [ "Fira Code" "Noto Color Emoji" "Symbols-1000-em Nerd Font" ];
# emoji = [ "Noto Color Emoji" "Symbols-1000-em Nerd Font" ];
monospace = [ "Fira Code" "Noto Color Emoji" "FiraCode Nerd Font" ];
emoji = [ "Noto Color Emoji" "FiraCode Nerd Font" ];
2020-09-11 14:58:56 +02:00
};
2019-10-19 12:55:35 +02:00
services.printing.enable = true;
2019-12-12 15:40:55 +01:00
services.fwupd.enable = true;
2022-05-03 22:44:29 +02:00
system.autoUpgrade = {
enable = true;
dates = "02:00";
flake = "/etc/nixos";
flags = with lib;
flatten (mapAttrsToList (n: _: [ "--update-input" n ]) flakes);
};
2019-10-19 12:55:35 +02:00
}