nixos-configs/common.nix

46 lines
1 KiB
Nix
Raw Normal View History

2023-03-20 22:35:11 +01:00
{ inputs, config, lib, pkgs, ... }:
with lib;
with lib.my;
{
imports =
2023-03-21 10:37:27 +01:00
[ inputs.home-manager.nixosModules.home-manager ]
++ (mapModulesRec' (toString ./modules) import);
2023-03-20 22:35:11 +01:00
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
nixPath = [
"nixpkgs=${inputs.nixpkgs-unstable}"
];
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-03-21 10:37:27 +01:00
time.timeZone = lib.mkDefault "Europe/Amsterdam";
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
console = {
keyMap = lib.mkDefault "fr";
};
2023-03-20 22:35:11 +01:00
environment.systemPackages = with pkgs; [
git
vim
];
}