feat: manage user configuration with Home Manager

This commit is contained in:
hhhh hgfh 2026-10-05 00:37:52 +03:00
parent 7ae4243548
commit 07f806604f
5 changed files with 66 additions and 2 deletions

24
nixos/home/hhhh.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, lib, ... }:
let
repo = "${config.home.homeDirectory}/Git/Custom-environment";
configDirs = [
"atuin"
"gitui"
"hypr"
"kitty"
"mako"
"nvim"
"waybar"
"wofi"
];
in
{
# Keep this at the version used when first enabling Home Manager.
home.stateVersion = "26.05";
xdg.enable = true;
xdg.configFile = lib.genAttrs configDirs (name: {
source = config.lib.file.mkOutOfStoreSymlink "${repo}/${name}";
});
}

View file

@ -5,6 +5,7 @@
./hardware-configuration.nix
../../modules/desktop.nix
../../modules/hardware.nix
../../modules/home.nix
../../modules/login-theme.nix
../../modules/packages
../../modules/system.nix

10
nixos/modules/home.nix Normal file
View file

@ -0,0 +1,10 @@
{ ... }:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "hm-backup";
users.hhhh = import ../home/hhhh.nix;
};
}