First attempt at flake for home manager config
This commit is contained in:
21
nix/home.nix
21
nix/home.nix
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user