Files
nixy/hosts/work/home.nix
T
2026-09-29 11:27:11 +02:00

76 lines
1.7 KiB
Nix

{
config,
inputs,
lib,
...
}: let
utils = import ../../home/lib/utils.nix {inherit lib;};
in {
imports =
utils.importAll ../../home/tui
++ utils.importAll ../../home/gui
++ utils.importAll ../../home/system # System (Desktop environment like stuff)
++ [
inputs.nvf-config.homeManagerModules.default # My vim config
./variables.nix # Mostly user-specific configuration
];
home = {
inherit (config.var) username;
homeDirectory = "/home/" + config.var.username;
persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
directories = [
".config/nixos" # this repo itself (nixy manages it here)
".local/share"
".local/state"
".cache"
"Notes"
"Projects"
"Documents"
"Downloads"
"Pictures"
"Videos"
];
files = [
".ssh/known_hosts"
".config/sops/age/keys.txt"
];
};
# Don't touch this
stateVersion = "26.05";
};
wayland.windowManager.hyprland.settings.monitor = [
"desc:Philips Consumer Electronics Company PHL 252B9 UHB2223003334,highres,0x0,1"
"desc:Acer Technologies Acer B246HL LXQEE0094208,highres,auto,1"
];
programs = {
home-manager.enable = true;
nixy = {
enable = true;
configDirectory = config.var.configDirectory;
};
git.includes = [
{
condition = "hasconfig:remote.*.url:**";
contents.user = {
name = "Hadrien";
email = "[email protected]";
};
}
{
condition = "hasconfig:remote.*.url:[email protected]:*/**";
contents.user = {
name = config.var.git.username;
email = config.var.git.email;
};
}
];
};
}