Skip to content

Commit

Permalink
refactor: Make a comin module
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Mar 7, 2024
1 parent 487965f commit ecf1b06
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 17 deletions.
1 change: 1 addition & 0 deletions hosts/framework/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
};

services = {
comin.enable = true;
docker.enable = true;
ssh.enable = true;
syncthing.enable = true;
Expand Down
17 changes: 0 additions & 17 deletions hosts/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,4 @@ with lib; {

# So the bitwarden CLI knows where to find my server.
modules.shell.bitwarden.config.server = "bitwarden.com";

imports = [inputs.comin.nixosModules.comin];

services.comin = {
enable = true;
remotes = [
{
name = "local";
url = "/home/emiller/.config/dotfiles/";
}

{
name = "origin";
url = "https://github.com/edmundmiller/dotfiles";
}
];
};
}
1 change: 1 addition & 0 deletions hosts/meshify/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
};

services = {
comin.enable = true;
docker.enable = true;
keybase.enable = true;
mpd.enable = true;
Expand Down
1 change: 1 addition & 0 deletions hosts/nuc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
};
services = {
audiobookshelf.enable = true;
comin.enable = true;
docker.enable = true;
hass.enable = true;
jellyfin.enable = true;
Expand Down
1 change: 1 addition & 0 deletions hosts/unas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
zsh.enable = true;
};
services = {
comin.enable = true;
docker.enable = true;
ssh.enable = true;
syncthing.enable = true;
Expand Down
30 changes: 30 additions & 0 deletions modules/services/comin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
config,
inputs,
lib,
...
}:
with lib;
with lib.my; let
cfg = config.modules.services.comin;
in {
options.modules.services.comin = {enable = mkBoolOpt false;};

imports = [inputs.comin.nixosModules.comin];
config = mkIf cfg.enable {
services.comin = {
enable = true;
remotes = [
{
name = "local";
url = "/home/emiller/.config/dotfiles/";
}

{
name = "origin";
url = "https://github.com/edmundmiller/dotfiles";
}
];
};
};
}

0 comments on commit ecf1b06

Please sign in to comment.