mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 18:36:05 -07:00
migrate chezmoi to base
This commit is contained in:
parent
317580fe9a
commit
89dd6985d8
@ -26,7 +26,6 @@
|
||||
pc.enable = true;
|
||||
};
|
||||
programs = {
|
||||
chezmoi.apply = true;
|
||||
kitty.enable = true;
|
||||
};
|
||||
services = {
|
||||
|
@ -15,7 +15,6 @@
|
||||
gnome.enable = true;
|
||||
};
|
||||
programs = {
|
||||
chezmoi.apply = true;
|
||||
kitty.enable = true;
|
||||
};
|
||||
services = {
|
||||
|
@ -48,7 +48,6 @@
|
||||
};
|
||||
programs = {
|
||||
borg.enable = true;
|
||||
chezmoi.apply = true;
|
||||
kitty.enable = true;
|
||||
virt-manager.enable = true;
|
||||
};
|
||||
|
@ -38,7 +38,6 @@
|
||||
};
|
||||
programs = {
|
||||
appgate-sdp.enable = true;
|
||||
chezmoi.apply = true;
|
||||
kitty.enable = true;
|
||||
virt-manager.enable = true;
|
||||
};
|
||||
|
@ -26,7 +26,6 @@
|
||||
};
|
||||
programs = {
|
||||
kitty.enable = true;
|
||||
chezmoi.apply = true;
|
||||
virt-manager.enable = false;
|
||||
};
|
||||
services = {
|
||||
|
@ -93,7 +93,6 @@
|
||||
# Modules
|
||||
modules = {
|
||||
programs = {
|
||||
chezmoi.apply = true;
|
||||
borg.enable = true;
|
||||
};
|
||||
services = {
|
||||
|
@ -58,7 +58,6 @@ in
|
||||
# Modules
|
||||
modules = {
|
||||
programs = {
|
||||
chezmoi.apply = true;
|
||||
git.keys = false;
|
||||
};
|
||||
};
|
||||
|
@ -2,6 +2,7 @@
|
||||
{
|
||||
imports = [
|
||||
./terminal.nix
|
||||
../programs/chezmoi.nix
|
||||
../programs/git.nix
|
||||
];
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -5,7 +5,6 @@
|
||||
./borg.nix
|
||||
./chrome.nix
|
||||
./firefox.nix
|
||||
./chezmoi.nix
|
||||
./kitty.nix
|
||||
./nvim.nix
|
||||
./virt-manager.nix
|
||||
|
Loading…
x
Reference in New Issue
Block a user