feat: rearrange nix modules

This commit is contained in:
Felix Schröter 2020-03-13 18:45:29 +01:00 committed by Felix Schroeter
parent 572d1d43c0
commit 89f6ab94b4
17 changed files with 28 additions and 28 deletions

38
system/default.nix Normal file
View file

@ -0,0 +1,38 @@
{ config, pkgs, ... }:
{
imports = [
./i18n.nix
./nix.nix
];
environment.systemPackages = with pkgs; [
wget
curl
networkmanager
neovim
];
fonts.fonts = with pkgs; [
hasklig
];
fonts.fontconfig.localConf = ''
<fontconfig>
<alias binding="weak">
<family>sans-serif</family>
<prefer>
<family>emoji</family>
</prefer>
</alias>
<alias binding="weak">
<family>serif</family>
<prefer>
<family>emoji</family>
</prefer>
</alias>
</fontconfig>
'';
services.printing.enable = true;
services.fwupd.enable = true;
}

18
system/i18n.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
{
console = {
font = "Lat2-Terminus16";
keyMap = "uk";
};
i18n = {
defaultLocale = "en_GB.UTF-8";
extraLocaleSettings = {
LC_MONETARY = "en_IE.UTF-8";
};
inputMethod.enabled = "ibus";
inputMethod.ibus.engines = with pkgs.ibus-engines; [ uniemoji ];
};
time.timeZone = "Europe/Berlin";
}

10
system/nix.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
nix.autoOptimiseStore = true;
nix.gc = {
automatic = true;
dates = "10:00";
options = "--delete-older-than 30d";
};
}