mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
by default include chezmoi
This commit is contained in:
parent
628d4d4da2
commit
bf4fd731df
@ -33,11 +33,8 @@
|
|||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
|
chezmoi.apply = true;
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
chezmoi = {
|
|
||||||
enable = true;
|
|
||||||
apply = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
samba-client.enable = true;
|
samba-client.enable = true;
|
||||||
|
@ -53,11 +53,8 @@
|
|||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
|
chezmoi.apply = true;
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
chezmoi = {
|
|
||||||
enable = true;
|
|
||||||
apply = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
peripherals.enable = true;
|
peripherals.enable = true;
|
||||||
|
@ -37,10 +37,7 @@
|
|||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
chezmoi = {
|
chezmoi.apply = true;
|
||||||
enable = true;
|
|
||||||
apply = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
peripherals.enable = true;
|
peripherals.enable = true;
|
||||||
|
@ -97,10 +97,7 @@
|
|||||||
tooling.enable = true;
|
tooling.enable = true;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
chezmoi = {
|
chezmoi.apply = true;
|
||||||
enable = true;
|
|
||||||
apply = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
|
@ -51,10 +51,7 @@ in
|
|||||||
tooling.enable = true;
|
tooling.enable = true;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
chezmoi = {
|
chezmoi.apply = true;
|
||||||
enable = true;
|
|
||||||
apply = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
system = {
|
system = {
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
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.mkEnableOption "chezmoi";
|
enable = lib.mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
apply = lib.mkOption {
|
apply = lib.mkOption {
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -12,9 +15,8 @@ in {
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
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
|
# Optionally apply chezmoi dotfiles with home-manager activation
|
||||||
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" ] ''
|
||||||
|
@ -8,7 +8,6 @@ in {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
killall # Command-line utility to terminate processes by name.
|
killall # Command-line utility to terminate processes by name.
|
||||||
pciutils # Utilities for inspecting and manipulating devices connected to the PCI bus.
|
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.
|
btop # Terminal-based resource monitor, providing an interactive view of system resources.
|
||||||
nix-search-cli # Command-line utility for searching the Nix package repository.
|
nix-search-cli # Command-line utility for searching the Nix package repository.
|
||||||
rbw # Command-line interface to the Bitwarden password manager.
|
rbw # Command-line interface to the Bitwarden password manager.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user