helm/default.nix
Henrik Lissner d5c807a4f9
Move to nixpkgs/master
For that 5.9.2 kernel goodness. Since I can track nixpkgs myself, I'm
using nixpkgs/master now (and twice, so I can track them at separate
rates).

Though, for now, nixpkgs == nixpkgs.unstable
2020-10-30 01:41:35 -04:00

70 lines
1.8 KiB
Nix

{ 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;
extraOptions = "experimental-features = nix-command flakes";
nixPath = [
"nixpkgs=${nixpkgs}"
"nixpkgs-unstable=${nixpkgs-unstable}"
"nixpkgs-overlays=${dotFilesDir}/overlays"
"home-manager=${home-manager}"
"dotfiles=${dotFilesDir}"
];
binaryCaches = [
"https://cache.nixos.org/"
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
registry = {
nixos.flake = nixpkgs;
nixpkgs.flake = nixpkgs-unstable;
};
useSandbox = true;
};
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.
fileSystems."/".device = "/dev/disk/by-label/nixos";
# Use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_5_9;
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.configurationLimit = 10;
systemd-boot.enable = mkDefault true;
};
# Just the bear necessities...
environment.systemPackages = with pkgs; [
cached-nix-shell
coreutils
git
vim
wget
gnumake
];
}