dotfiles/common/users/meyer/home.nix

81 lines
2.3 KiB
Nix
Raw Normal View History

2024-11-17 21:20:03 -05:00
{
config,
pkgs,
inputs,
...
}:
2024-05-03 18:49:17 -04:00
let
2024-11-17 21:20:03 -05:00
file = import ../../files.nix { inherit config cpkg; };
shell = import ../../shell.nix { inherit config pkgs cpkg; };
cpkg = import ../../../customPackages { inherit pkgs inputs; };
pkgTypes = import ../../pkgs.nix {
inherit
pkgs
config
inputs
cpkg
;
};
2024-10-02 16:36:52 -04:00
packages = pkgTypes.dev ++ pkgTypes.gui ++ pkgTypes.general ++ pkgTypes.scripts ++ pkgTypes.gaming;
2024-05-03 18:49:17 -04:00
in
{
nixpkgs.config.allowInsecurePredicate = (pkg: true);
2024-10-02 17:19:34 -04:00
nixpkgs.config.allowUnfreePredicate = (pkg: true);
imports = [
2024-10-02 16:36:52 -04:00
../homeModules/flameshot.nix
../homeModules/arrpc.nix
../homeModules/zsh.nix
../homeModules/desktopEntries.nix
2024-10-02 17:19:34 -04:00
../homeModules/java.nix
2024-10-28 19:57:27 -04:00
../homeModules/jetbrains
../homeModules/notion.nix
2024-10-02 16:36:52 -04:00
./sops.nix
2024-10-02 17:19:34 -04:00
./git.nix
];
# Home Manager needs a bit of information about you and the paths it should
# nixpkg.config.allowUnfree = true;
# manage.
home.username = "meyer";
home.homeDirectory = "/home/meyer";
# The home.packages option allows you to install Nix packages into your
# environment.
2024-10-02 16:36:52 -04:00
home = {
2024-10-02 17:19:34 -04:00
inherit packages file;
2024-10-02 16:36:52 -04:00
};
2024-10-02 17:19:34 -04:00
home.shellAliases = shell.dev.aliases;
home.sessionPath = shell.dev.path;
home.sessionVariables = shell.dev.env;
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. If you don't want to manage your shell through Home
# Manager then you have to manually source 'hm-session-vars.sh' located at
# either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/meyer/etc/profile.d/hm-session-vars.sh
#
2024-10-02 17:19:34 -04:00
# 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 should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "23.11"; # Please read the comment before changing.
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}