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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
{ config , pkgs , user , inputs , . . . }:
{
# Automatically delete generations older than a week
nix . gc = {
automatic = true ;
options = " - - d e l e t e - g e n e r a t i o n s 8 d " ;
} ;
networking . networkmanager . enable = true ;
time . timeZone = " A m e r i c a / L o s _ A n g e l e s " ;
users . users . ${ user } = {
isNormalUser = true ;
extraGroups = [ " w h e e l " " a u d i o " " v i d e o " " o p t i c a l " " s t o r a g e " " n e t w o r k m a n a g e r " ] ;
initialPassword = " p a s s w o r d " ;
} ;
nixpkgs . config . allowUnfree = true ;
nix = {
package = pkgs . nixVersions . stable ; # flakes
extraOptions = " e x p e r i m e n t a l - f e a t u r e s = n i x - c o m m a n d f l a k e s " ;
} ;
environment . systemPackages = with pkgs ; [
rustc
cargo
] ;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘ s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system . stateVersion = " 2 2 . 0 5 " ; # Did you read the comment?
}