2021-12-16 12:28:43 -08:00
|
|
|
{ inputs, pkgs, ... }: {
|
2021-12-16 12:48:46 -08:00
|
|
|
imports = [
|
|
|
|
# Add external nixos modules here
|
|
|
|
# inputs.hardware.nixosModules.common-cpu-amd
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2021-12-16 12:28:43 -08:00
|
|
|
system.stateVersion = "21.11";
|
2021-12-16 12:48:46 -08:00
|
|
|
# Uncomment to enable unfree packages for your system
|
2021-12-16 12:28:43 -08:00
|
|
|
# nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
# This will make all users source .nix-profile on login, activating home
|
|
|
|
# manager automatically. Will allow you to use home-manager standalone on
|
|
|
|
# setups with opt-in persistance.
|
|
|
|
environment.loginShellInit = ''
|
|
|
|
[ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
|
|
|
|
'';
|
|
|
|
}
|