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