nix-starter-configs/standard/home-manager/home.nix

35 lines
1 KiB
Nix
Raw Normal View History

2021-12-16 13:36:16 -08:00
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs, lib, config, pkgs, ... }: {
2021-12-16 12:48:46 -08:00
imports = [
2021-12-16 13:05:07 -08:00
# If you want to use home-manager modules from other flakes (such as nix-colors), use something like:
# inputs.nix-colors.homeManagerModule
2021-12-16 13:05:07 -08:00
# Feel free to split up your configuration and import pieces of it here.
2021-12-16 12:48:46 -08:00
];
2021-12-16 13:36:16 -08:00
# Comment out if you wish to disable unfree packages for your system
2021-12-16 13:05:07 -08:00
nixpkgs.config.allowUnfree = true;
# TODO: Set your username
home = {
2022-08-05 18:57:41 -07:00
username = "your-username";
homeDirectory = "/home/your-username";
};
# Add stuff for your user as you see fit:
2021-12-16 12:48:46 -08:00
# programs.neovim.enable = true;
2021-12-16 13:36:16 -08:00
# home.packages = with pkgs; [ steam ];
2021-12-16 13:05:07 -08:00
# Enable home-manager and git
programs.home-manager.enable = true;
programs.git.enable = true;
# Nicely reload system units when changing configs
2021-12-16 13:36:16 -08:00
systemd.user.startServices = "sd-switch";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "22.05";
2021-12-16 12:48:46 -08:00
}