my configuration for my NixOS machines, I guess
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.4 KiB

# configuration.nix -- the glue
{ options, config, lib, pkgs, ... }:
{
imports = [
<home-manager/nixos>
# ./cachix.nix
./modules
./machines/current
];
# clean up the nix store periodically
nix = {
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 10d";
};
trustedUsers = [ "root" "hazel" ];
};
# unfortunately, I live here
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
time.timeZone = "America/Indiana/Indianapolis";
nixpkgs.overlays = import /etc/nixos/packages;
nixpkgs.config.allowUnfree = true; # sorry, Stallman
# the bare minimum
environment.systemPackages = with pkgs; [
coreutils
git
killall
unzip
wget
vim
gnumake
] ++ (if builtins.currentSystem != "aarch64-linux" then [
# avoid building from source
hazel.cachix
hazel.cached-nix-shell
] else []);
# unfortunately for everyone, it's me
users.mutableUsers = false; # build-vm
users.users.hazel = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "wheel" "audio" "video" "networkmanager" ];
shell = pkgs.zsh;
};
# enable home-manager for my user
home-manager.useUserPackages = true; # build-vm
home-manager.useGlobalPkgs = true;
home-manager.users.hazel = lib.mkAliasDefinitions options.hazel.home;
system.stateVersion = "20.03";
}