by default include chezmoi

This commit is contained in:
Tyler Starr 2024-09-30 10:35:46 -07:00
parent 628d4d4da2
commit bf4fd731df
7 changed files with 10 additions and 24 deletions

View File

@ -33,11 +33,8 @@
steam.enable = true;
};
programs = {
chezmoi.apply = true;
kitty.enable = true;
chezmoi = {
enable = true;
apply = true;
};
};
services = {
samba-client.enable = true;

View File

@ -53,11 +53,8 @@
steam.enable = true;
};
programs = {
chezmoi.apply = true;
kitty.enable = true;
chezmoi = {
enable = true;
apply = true;
};
};
services = {
peripherals.enable = true;

View File

@ -37,10 +37,7 @@
};
programs = {
kitty.enable = true;
chezmoi = {
enable = true;
apply = true;
};
chezmoi.apply = true;
};
services = {
peripherals.enable = true;

View File

@ -97,10 +97,7 @@
tooling.enable = true;
};
programs = {
chezmoi = {
enable = true;
apply = true;
};
chezmoi.apply = true;
};
services = {
jellyfin.enable = true;

View File

@ -51,10 +51,7 @@ in
tooling.enable = true;
};
programs = {
chezmoi = {
enable = true;
apply = true;
};
chezmoi.apply = true;
};
system = {
ssh.enable = true;

View File

@ -3,7 +3,10 @@
let cfg = config.modules.programs.chezmoi;
in {
options.modules.programs.chezmoi = with lib; {
enable = lib.mkEnableOption "chezmoi";
enable = lib.mkOption {
type = with types; bool;
default = true;
};
apply = lib.mkOption {
type = with types; bool;
default = false;
@ -12,9 +15,8 @@ in {
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
chezmoi # Manages your dotfiles across multiple machines, ensuring consistency and version control
chezmoi
];
# Optionally apply chezmoi dotfiles with home-manager activation
home-manager.users.${user} = lib.mkIf cfg.apply {
home.activation.chezmoi = home-manager.lib.hm.dag.entryAfter [ "installPackages" ] ''

View File

@ -8,7 +8,6 @@ in {
environment.systemPackages = with pkgs; [
killall # Command-line utility to terminate processes by name.
pciutils # Utilities for inspecting and manipulating devices connected to the PCI bus.
chezmoi # Manages your dotfiles across multiple machines, ensuring consistency and version control.
btop # Terminal-based resource monitor, providing an interactive view of system resources.
nix-search-cli # Command-line utility for searching the Nix package repository.
rbw # Command-line interface to the Bitwarden password manager.