51 lines
1.2 KiB
Nix
Executable file
51 lines
1.2 KiB
Nix
Executable file
{ config, inputs, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (builtins) toString;
|
|
inherit (lib.modules) mkDefault;
|
|
inherit (lib.my) mapModulesRec';
|
|
in {
|
|
imports =
|
|
[
|
|
inputs.home-manager.nixosModules.home-manager
|
|
]
|
|
++ (mapModulesRec' (toString ./modules) import);
|
|
|
|
nix = {
|
|
package = pkgs.nix;
|
|
|
|
# flake registry and nix path pinning
|
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
|
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
auto-optimise-store = true;
|
|
keep-outputs = true;
|
|
keep-derivations = true;
|
|
substituters = [
|
|
"https://nix-community.cachix.org"
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
};
|
|
};
|
|
|
|
time.timeZone = mkDefault "America/Los_Angeles";
|
|
|
|
i18n.defaultLocale = mkDefault "en_US.UTF-8";
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
unrar unzip
|
|
micro
|
|
curl wget
|
|
# im pretty sure removing this breaks nixos-rebuild
|
|
# have fun
|
|
git
|
|
];
|
|
|
|
system.stateVersion = mkDefault "23.11";
|
|
}
|