ooknet/home/ooks/base/default.nix
2023-12-04 16:17:47 +13:00

47 lines
1 KiB
Nix

{ inputs, lib, pkgs, config, outputs, ... }:
let
inherit (inputs.nix-colors) colorSchemes;
in
{
imports = [
inputs.nix-colors.homeManagerModule
./shell
./xdg.nix
] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {
overlays = builtins.attrValues outputs.overlays;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
warn-dirty = false;
};
};
programs = {
home-manager.enable = true;
git.enable = true;
};
home = {
username = lib.mkDefault "ooks";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "22.05";
sessionPath = [ "$HOME/.local/bin" ];
sessionVariables = {
FLAKE = "$HOME/.dotfiles/nix";
};
};
xdg.portal.enable = true;
colorscheme = lib.mkDefault colorSchemes.everforest;
home.file.".colorscheme".text = config.colorscheme.slug;
}