Regenerated

This commit is contained in:
2026-03-22 07:43:01 +00:00
parent 9719ba736c
commit 42f5cc022c
32 changed files with 8 additions and 1530 deletions
@@ -1,23 +0,0 @@
{ lib, config, pkgs, ... }:
let
username = config.defaultUser or "henrov";
# Absolute path to your assets folder
assetPath = ../../../assets/copy_2_home;
in
{
_module.args.hmUsers = {
${username} = {
# Activation script: run after Home Manager writes everything else
home.activation.copyAssets = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Copying assets from ${assetPath} to home directory..."
# Recursively copy all files and directories, overwrite existing files
rsync -a --delete "${assetPath}/" "$HOME/"
echo "Done copying assets."
'';
};
};
}
@@ -1,26 +0,0 @@
{ lib, config, pkgs, ... }:
let
username = "henrov";
in
{
# NixOS user
users.users.${username} = {
isNormalUser = true;
home = "/home/${username}";
hashedPassword = "$6$S7iShgBxB.77CwmP$i0njK.2r3OL5UEvgZbmwZ0rnpZ4QyJcv8p9uCmJ4AiVPSMXkQkIwMLzyAOnJ0q8.tPLIp/7EquEIZeK8qbmgw/";
extraGroups = [ "wheel" "networkmanager" ];
};
# Home Manager user definition
_module.args.hmUsers = {
${username} = {
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "26.05";
# Example: user packages
home.packages = [ pkgs.git pkgs.vim ];
};
};
}