add deck home manager

This commit is contained in:
2025-02-08 11:49:52 +00:00
parent b31503e82b
commit 0241c5ce3a
5 changed files with 132 additions and 14 deletions

View File

@@ -9,6 +9,9 @@ with lib;
flakeUpdateLocation = mkOption {
type = types.str;
};
homeUpdateLocation = mkOption {
type = types.str;
};
};
config = {
@@ -134,17 +137,18 @@ with lib;
enable = true;
};
topgrade = {
topgrade = with config.terminal;{
enable = true;
settings = {
misc = {
assume_yes = true;
};
linux = {
nix_arguments = "--flake ${config.terminal.nixUpdateLocation}";
nix_arguments = if nixUpdateLocation then "--flake ${nixUpdateLocation}" else null;
home_manager_arguments = if homeUpdateLocation then "--flake ${homeUpdateLocation}" else null;
};
pre_commands = {
nix-flake-update = "sudo nix flake update --flake ${config.terminal.flakeUpdateLocation}";
nix-flake-update = if flakeUpdateLocation then "sudo nix flake update --flake ${flakeUpdateLocation}" else null;
};
};
};