add deck home manager
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user