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.
 
 
 
 

67 lines
1.4 KiB

# configuration.nix -- the glue
{ options, config, lib, pkgs, ... }:
{
imports = [
./modules
];
nix = {
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 10d";
};
trustedUsers = [ "root" "hazel" ];
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
gc-keep-outputs = true
'';
binaryCaches = [
"https://cachix.cachix.org"
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
# unfortunately, I live here
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
time.timeZone = "America/Indiana/Indianapolis";
# the bare minimum
environment.systemPackages = with pkgs; [
coreutils
git
killall
unzip
wget
vim
gnumake
cachix
cached-nix-shell
];
users.mutableUsers = true;
users.users.hazel = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "wheel" "audio" "video" "networkmanager" ];
shell = pkgs.zsh;
};
# enable home-manager for my user
home-manager.users.hazel = lib.mkAliasDefinitions options.hazel.home;
system.stateVersion = "20.03";
}