dotfiles/home/global/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

2024-12-23 15:22:05 +00:00
{ inputs, outputs, lib, config, pkgs, ... }: {
2025-01-09 04:55:31 +00:00
imports = [
../modules/tui
inputs.catppuccin.homeManagerModules.catppuccin
inputs.sops-nix.homeManagerModules.sops
] ++ (builtins.attrValues outputs.homeManagerModules);
2023-07-28 22:15:33 +00:00
nixpkgs = {
overlays = builtins.attrValues outputs.overlays;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
2023-07-28 22:15:33 +00:00
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
2024-12-20 01:30:06 +00:00
experimental-features = [ "nix-command" "flakes" ];
2023-07-28 22:15:33 +00:00
warn-dirty = false;
};
};
home = {
2023-07-28 22:15:33 +00:00
username = lib.mkDefault "john";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
2024-12-20 01:07:08 +00:00
stateVersion = lib.mkDefault "24.11";
2024-12-20 01:30:06 +00:00
sessionVariables = { EDITOR = "nvim"; };
};
2025-01-09 04:55:31 +00:00
programs = { home-manager.enable = true; };
2025-01-09 04:55:31 +00:00
sops = {
age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
secrets.tempest-station = { sopsFile = ./secrets.yaml; };
secrets.tempest-token = { sopsFile = ./secrets.yaml; };
};
2024-12-23 15:22:05 +00:00
catppuccin = {
flavor = "mocha";
enable = true;
};
targets.genericLinux.enable = true;
2025-01-09 21:19:32 +00:00
xdg.enable = true;
xdg.mime.enable = true;
}