First attempt at flake for home manager config

This commit is contained in:
2022-08-30 13:13:32 -07:00
parent 0c3d8e2a39
commit 3bb4f8d4bb
4 changed files with 312 additions and 53 deletions

View File

@@ -1,26 +1,13 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "ttm";
home.homeDirectory = builtins.getEnv "HOME";
nixpkgs.overlays = [
(import ./overlays/xonsh.nix)
];
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.homeDirectory = if lib.strings.hasInfix "darwin" pkgs.system
then /Users/ttm else /home/ttm;
home.stateVersion = "22.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Enable integration with generic Linux OSs
targets.genericLinux.enable = pkgs.stdenv.isLinux;