All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m0s
42 lines
1.4 KiB
Nix
42 lines
1.4 KiB
Nix
# **************************************************************************** #
|
|
# #
|
|
# ::: :::::::: #
|
|
# home.nix :+: :+: :+: #
|
|
# +:+ +:+ +:+ #
|
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
|
# +#+#+#+#+#+ +#+ #
|
|
# Created: 2024/10/17 18:15:38 by tomoron #+# #+# #
|
|
# Updated: 2025/09/24 02:08:41 by tomoron ### ########.fr #
|
|
# #
|
|
# **************************************************************************** #
|
|
|
|
{
|
|
lib,
|
|
username ? "tom",
|
|
homeDir ? "/home/tom",
|
|
isOs ? false,
|
|
configSops ? true,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = lib.concatLists [
|
|
[ ./packages.nix ]
|
|
(lib.fileset.toList ./modules)
|
|
(lib.fileset.toList ./global)
|
|
];
|
|
|
|
home.username = lib.mkIf (!isOs) "${username}";
|
|
home.homeDirectory = lib.mkIf (!isOs) "${homeDir}";
|
|
|
|
home.stateVersion = "24.05";
|
|
|
|
sops = lib.mkIf configSops{
|
|
defaultSopsFile = ../secrets/secrets.yaml;
|
|
age.keyFile = "${homeDir}/.config/sops/age/keys.txt";
|
|
};
|
|
|
|
services.dunst.enable = true;
|
|
programs.home-manager.enable = true;
|
|
}
|