1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-05-13 02:26:17 +02:00
git.oat.zone--dark-firepit-.../default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2022-01-11 18:44:40 +01:00
{ config, inputs, lib, pkgs, ... }:
let
inherit (lib) _;
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
registry = lib.mapAttrs (_: v: { flake = v; }) (_.filterSelf inputs);
in {
package = pkgs.nixFlakes;
autoOptimiseStore = true;
extraOptions = "experimental-features = nix-command flakes";
binaryCaches = [
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
registry = registry // { dotfiles.flake = inputs.self; };
};
environment.systemPackages = with pkgs; [
curl git wget neovim
];
i18n.defaultLocale = "en_US.UTF-8";
system.stateVersion = lib.mkDefault "21.05";
}