working on machines

This commit is contained in:
2026-03-12 16:03:06 +01:00
parent 615ed922e6
commit 16cdfc423e
+17 -15
View File
@@ -65,24 +65,26 @@
# Catppuccin theme module
inputs.catppuccin.nixosModules.catppuccin
# Anchoring al the other nixes
# Anchoring all the other nixes
./generated/top.nix
# Enable Home Manager for the user
({ config, pkgs, ... }:
{
home-manager.users.${user.username} = {
enable = true;
homeDirectory = "/home/${user.username}";
};
systemd.users.services."home-manager-${user.username}" = {
description = "Home Manager service for ${user.username}";
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true;
serviceConfig.ExecStart = "${pkgs.home-manager}/bin/home-manager switch --flake ${self}#${user.username}@${machine}";
};
}
(
{ config, pkgs, ... }:
{
home-manager.users.${user.username} = {
enable = true;
homeDirectory = "/home/${user.username}";
};
systemd.users.services."home-manager-${user.username}" = {
description = "Home Manager service for ${user.username}";
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true;
serviceConfig.ExecStart = "${pkgs.home-manager}/bin/home-manager switch --flake ${self}#${user.username}@${machine}";
};
}
)
];
specialArgs = {
inherit user inputs;