migrate chezmoi to base

This commit is contained in:
Tyler Starr 2025-03-12 23:04:04 -07:00
parent 317580fe9a
commit 89dd6985d8
10 changed files with 4 additions and 14 deletions

View File

@ -26,7 +26,6 @@
pc.enable = true;
};
programs = {
chezmoi.apply = true;
kitty.enable = true;
};
services = {

View File

@ -15,7 +15,6 @@
gnome.enable = true;
};
programs = {
chezmoi.apply = true;
kitty.enable = true;
};
services = {

View File

@ -48,7 +48,6 @@
};
programs = {
borg.enable = true;
chezmoi.apply = true;
kitty.enable = true;
virt-manager.enable = true;
};

View File

@ -38,7 +38,6 @@
};
programs = {
appgate-sdp.enable = true;
chezmoi.apply = true;
kitty.enable = true;
virt-manager.enable = true;
};

View File

@ -26,7 +26,6 @@
};
programs = {
kitty.enable = true;
chezmoi.apply = true;
virt-manager.enable = false;
};
services = {

View File

@ -93,7 +93,6 @@
# Modules
modules = {
programs = {
chezmoi.apply = true;
borg.enable = true;
};
services = {

View File

@ -58,7 +58,6 @@ in
# Modules
modules = {
programs = {
chezmoi.apply = true;
git.keys = false;
};
};

View File

@ -2,6 +2,7 @@
{
imports = [
./terminal.nix
../programs/chezmoi.nix
../programs/git.nix
];
}

View File

@ -3,20 +3,17 @@
let cfg = config.modules.programs.chezmoi;
in {
options.modules.programs.chezmoi = with lib; {
enable = lib.mkOption {
apply = lib.mkOption {
type = with types; bool;
default = true;
};
apply = lib.mkOption {
type = with types; bool;
default = false;
};
};
config = lib.mkIf cfg.enable {
config = {
environment.systemPackages = with pkgs; [
chezmoi # Manage your dotfiles across multiple machines, securely
];
home-manager.users.${user} = lib.mkIf cfg.apply {
home.activation.chezmoi = home-manager.lib.hm.dag.entryAfter [ "installPackages" ] ''
_saved_path=$PATH

View File

@ -5,7 +5,6 @@
./borg.nix
./chrome.nix
./firefox.nix
./chezmoi.nix
./kitty.nix
./nvim.nix
./virt-manager.nix