2022-01-11 18:44:40 +01:00
|
|
|
|
{ config, inputs, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
let
|
2022-09-05 18:16:09 +02:00
|
|
|
|
inherit (lib) filterAttrs _;
|
2022-01-11 18:44:40 +01:00
|
|
|
|
in {
|
|
|
|
|
imports =
|
|
|
|
|
[ inputs.home-manager.nixosModules.home-manager ]
|
|
|
|
|
++ _.mapModulesRec' ./modules import;
|
|
|
|
|
|
|
|
|
|
# ‹nix flake check› bypasses, can be changed in the actual hosts
|
|
|
|
|
# config, useful for testing
|
|
|
|
|
fileSystems."/".device = lib.mkDefault "/dev/disk/by-label/nixos";
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 10;
|
|
|
|
|
|
|
|
|
|
nix = let
|
2022-09-05 18:16:09 +02:00
|
|
|
|
registry = lib.mapAttrs (name: value: { flake = value; }) (filterAttrs (name: value: name != "attrs") inputs);
|
2022-01-11 18:44:40 +01:00
|
|
|
|
in {
|
|
|
|
|
package = pkgs.nixFlakes;
|
2022-09-05 18:16:09 +02:00
|
|
|
|
registry = registry // { dotfiles.flake = inputs.self; };
|
|
|
|
|
settings.auto-optimise-store = true;
|
|
|
|
|
settings.experimental-features = [ "nix-command" "flakes"];
|
|
|
|
|
settings.substituters = [
|
2022-01-11 18:44:40 +01:00
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
|
];
|
2022-09-05 18:16:09 +02:00
|
|
|
|
settings.trusted-public-keys = [
|
2022-01-11 18:44:40 +01:00
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
curl git wget neovim
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
system.stateVersion = lib.mkDefault "21.05";
|
|
|
|
|
}
|