global home.nix changes

This commit is contained in:
ooks-io 2023-07-28 19:56:57 +12:00
parent 1801e6f02e
commit e30d9f4123

View file

@ -0,0 +1,45 @@
{ inputs, lib, pkgs, config, outputs, ... }:
let
inherit (inputs.nix-colors) colorSchemes;
in
{
imports = [
inputs.nix-colors.homeManagerModule
../modules/editors/nvim/
../modules/common/
] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
permittedInsecurePackages = [
"openssl-1.1.1u"
];
};
};
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" ];
};
};
colorscheme = lib.mkDefault colorSchemes.everforest;
home.file.".colorscheme".text = config.colorscheme.slug;
}