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; pc.enable = true;
}; };
programs = { programs = {
chezmoi.apply = true;
kitty.enable = true; kitty.enable = true;
}; };
services = { services = {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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