nixos-configs/common.nix

67 lines
1.5 KiB
Nix
Raw Normal View History

2023-03-20 22:35:11 +01:00
{ inputs, config, lib, pkgs, ... }:
with lib;
2023-03-21 14:42:39 +01:00
with lib.my; {
imports = [ inputs.home-manager.nixosModules.home-manager ]
2023-03-21 10:37:27 +01:00
++ (mapModulesRec' (toString ./modules) import);
2023-03-20 22:35:11 +01:00
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
2023-03-21 14:42:39 +01:00
nixPath = [ "nixpkgs=${inputs.nixpkgs-unstable}" ];
2023-03-20 22:35:11 +01:00
settings = {
substituters = [
"https://nix-community.cachix.org"
"http://cache.banditlair.com"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.banditlair.com:4zk7iDvzKh6VN+LxzKIGcVPKgL5dLeyEt2ydrgx4o8c="
];
auto-optimise-store = true;
};
};
2023-03-21 10:37:27 +01:00
2023-03-20 22:35:11 +01:00
system.configurationRevision = with inputs; mkIf (self ? rev) self.rev;
2023-06-10 09:50:14 +02:00
time.timeZone = mkDefault "Europe/Amsterdam";
2023-03-21 10:37:27 +01:00
2023-06-10 09:50:14 +02:00
i18n.defaultLocale = mkDefault "en_US.UTF-8";
2023-03-21 10:37:27 +01:00
2023-06-10 09:50:14 +02:00
console = {
keyMap = lib.mkDefault "fr";
font = mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
earlySetup = true;
};
fonts.fontconfig.antialias = mkDefault true;
fonts.fontconfig.subpixel = {
rgba = mkDefault "none";
lcdfilter = mkDefault "none";
};
2023-03-21 10:37:27 +01:00
2023-03-20 22:35:11 +01:00
environment.systemPackages = with pkgs; [
git
vim
2023-03-21 14:42:39 +01:00
wget
inetutils
man
htop
ncdu
nload
pciutils
lsof
dnsutils
unzip
2023-03-20 22:35:11 +01:00
];
2023-03-21 14:42:39 +01:00
networking.hosts = {
"127.0.0.1" = [ "localhost" "membres.yourcoop.local" ];
};
services.resolved.dnssec = "false";
2023-03-20 22:35:11 +01:00
}