helm/default.nix

67 lines
1.7 KiB
Nix
Raw Normal View History

2020-10-26 02:48:12 -07:00
{ inputs, config, lib, pkgs, ... }:
with lib;
with lib.my;
with inputs;
{
imports =
# I use home-manager to deploy files to $HOME; little else
[ home-manager.nixosModules.home-manager ]
# All my personal modules
++ (mapModulesRec' (toString ./modules) import);
# Common config for all nixos machines; and to ensure the flake operates
# soundly
environment.variables.DOTFILES = dotFilesDir;
# Configure nix and nixpkgs
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
nix = {
package = pkgs.nixFlakes;
2020-10-26 02:48:12 -07:00
extraOptions = "experimental-features = nix-command flakes";
2020-12-31 16:34:11 -08:00
nixPath = (mapAttrsToList (n: v: "${n}=${v}") inputs) ++ [
2020-10-26 02:48:12 -07:00
"nixpkgs-overlays=${dotFilesDir}/overlays"
"dotfiles=${dotFilesDir}"
];
binaryCaches = [
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
registry = {
nixos.flake = nixpkgs;
nixpkgs.flake = nixpkgs-unstable;
2020-10-26 02:48:12 -07:00
};
useSandbox = true;
2020-10-26 02:48:12 -07:00
};
system.configurationRevision = mkIf (self ? rev) self.rev;
system.stateVersion = "20.09";
## Some reasonable, global defaults
# This is here to appease 'nix flake check' for generic hosts with no
# hardware-configuration.nix or fileSystem config.
2020-12-31 16:34:11 -08:00
fileSystems."/".device = mkDefault "/dev/disk/by-label/nixos";
2020-10-26 02:48:12 -07:00
# Use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_5_9;
2020-10-26 02:48:12 -07:00
boot.loader = {
2020-12-30 22:59:04 -08:00
efi.canTouchEfiVariables = mkDefault true;
2020-10-26 02:48:12 -07:00
systemd-boot.configurationLimit = 10;
systemd-boot.enable = mkDefault true;
};
# Just the bear necessities...
environment.systemPackages = with pkgs; [
cached-nix-shell
2020-10-26 02:48:12 -07:00
coreutils
git
vim
wget
gnumake
2020-12-21 19:37:22 -08:00
unzip
2020-10-26 02:48:12 -07:00
];
}