mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-20 19:36:05 -07:00
Compare commits
4 Commits
db02ef369c
...
f92c6e6b5b
Author | SHA1 | Date | |
---|---|---|---|
f92c6e6b5b | |||
bf6de61404 | |||
c2c1d6eb26 | |||
56cbe3e4a7 |
@ -35,6 +35,10 @@
|
||||
};
|
||||
programs = {
|
||||
kitty.enable = true;
|
||||
chezmoi = {
|
||||
enable = true;
|
||||
apply = true;
|
||||
};
|
||||
};
|
||||
services = {
|
||||
samba-client.enable = true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ lib, system, user, inputs, agenix, home-manager, jovian-nixos, ... }:
|
||||
{
|
||||
inherit system;
|
||||
specialArgs = { inherit user inputs home-manger; };
|
||||
specialArgs = { inherit user inputs home-manager jovian-nixos; };
|
||||
modules = [
|
||||
../default # shared by all configs
|
||||
../default/physical/configuration.nix # shared by physical machines
|
||||
|
@ -2,7 +2,7 @@
|
||||
{
|
||||
imports = [
|
||||
(jovian-nixos + "/modules")
|
||||
home-manager.nixosModule
|
||||
#home-manager.nixosModule
|
||||
];
|
||||
|
||||
jovian = {
|
||||
|
@ -54,6 +54,10 @@
|
||||
};
|
||||
programs = {
|
||||
kitty.enable = true;
|
||||
chezmoi = {
|
||||
enable = true;
|
||||
apply = true;
|
||||
};
|
||||
};
|
||||
services = {
|
||||
peripherals.enable = true;
|
||||
|
@ -37,6 +37,10 @@
|
||||
};
|
||||
programs = {
|
||||
kitty.enable = true;
|
||||
chezmoi = {
|
||||
enable = true;
|
||||
apply = true;
|
||||
};
|
||||
};
|
||||
services = {
|
||||
peripherals.enable = true;
|
||||
|
@ -96,6 +96,12 @@
|
||||
devel = {
|
||||
tooling.enable = true;
|
||||
};
|
||||
programs = {
|
||||
chezmoi = {
|
||||
enable = true;
|
||||
apply = true;
|
||||
};
|
||||
};
|
||||
services = {
|
||||
jellyfin.enable = true;
|
||||
};
|
||||
|
@ -50,6 +50,12 @@ in
|
||||
python.enable = true;
|
||||
tooling.enable = true;
|
||||
};
|
||||
programs = {
|
||||
chezmoi = {
|
||||
enable = true;
|
||||
apply = true;
|
||||
};
|
||||
};
|
||||
system = {
|
||||
ssh.enable = true;
|
||||
terminal.enable = true;
|
||||
|
25
provision/modules/programs/chezmoi.nix
Normal file
25
provision/modules/programs/chezmoi.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ config, lib, pkgs, user, home-manager, ... }:
|
||||
|
||||
let cfg = config.modules.programs.chezmoi;
|
||||
in {
|
||||
options.modules.programs.chezmoi = with lib; {
|
||||
enable = lib.mkEnableOption "chezmoi";
|
||||
apply = lib.mkOption {
|
||||
type = with types; bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
chezmoi # Manages your dotfiles across multiple machines, ensuring consistency and version control
|
||||
];
|
||||
|
||||
# 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" ] ''
|
||||
run ${pkgs.chezmoi}/bin/chezmoi apply --force
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ./kitty.nix ];
|
||||
imports = [ ./chezmoi.nix ./kitty.nix ];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user