From 971f430ecc72f78e7841578ae3596a4b0e517029 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Tue, 5 Mar 2024 12:21:46 -0600 Subject: [PATCH] feat: Add comin --- flake.lock | 68 +++++++++++++++++++++++++++++++++++++------------- flake.nix | 1 + hosts/home.nix | 18 +++++++++++++ 3 files changed, 69 insertions(+), 18 deletions(-) diff --git a/flake.lock b/flake.lock index 5f96eb9c..2166188a 100644 --- a/flake.lock +++ b/flake.lock @@ -170,6 +170,24 @@ "type": "github" } }, + "comin": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1708160520, + "narHash": "sha256-2PdzJHLBYQ+Vy4pF7/e76YVfxIOjQJ3+JcBL6xRmSK4=", + "owner": "nlewo", + "repo": "comin", + "rev": "529a27caaffd30b9ac3e8d48250a2566b5e36f4e", + "type": "github" + }, + "original": { + "owner": "nlewo", + "repo": "comin", + "type": "github" + } + }, "darwin": { "inputs": { "nixpkgs": [ @@ -215,7 +233,7 @@ "emacs-overlay": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "nixpkgs-stable": "nixpkgs-stable" }, "locked": { @@ -576,7 +594,7 @@ "flake-parts": "flake-parts_2", "hercules-ci-effects": "hercules-ci-effects", "neovim-flake": "neovim-flake", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_3" }, "locked": { "lastModified": 1709512572, @@ -609,18 +627,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1709237383, - "narHash": "sha256-cy6ArO4k5qTx+l5o+0mL9f5fa86tYUX3ozE1S+Txlds=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8", - "type": "github" + "lastModified": 1701539137, + "narHash": "sha256-nVO/5QYpf1GwjvtpXhyxx5M3U/WN0MwBro4Lsk+9mL0=", + "path": "/nix/store/chi01x4fh8hx7wwh0rqd7m1c8583iyhv-source", + "rev": "933d7dc155096e7575d207be6fb7792bc9f34f6d", + "type": "path" }, "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" + "id": "nixpkgs", + "type": "indirect" } }, "nixpkgs-lib": { @@ -673,6 +688,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1709237383, + "narHash": "sha256-cy6ArO4k5qTx+l5o+0mL9f5fa86tYUX3ozE1S+Txlds=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1709386671, "narHash": "sha256-VPqfBnIJ+cfa78pd4Y5Cr6sOWVW8GYHRVucxJGmRf8Q=", @@ -688,7 +719,7 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_4": { "locked": { "lastModified": 1709386671, "narHash": "sha256-VPqfBnIJ+cfa78pd4Y5Cr6sOWVW8GYHRVucxJGmRf8Q=", @@ -703,7 +734,7 @@ "type": "indirect" } }, - "nixpkgs_4": { + "nixpkgs_5": { "locked": { "lastModified": 1700856099, "narHash": "sha256-RnEA7iJ36Ay9jI0WwP+/y4zjEhmeN6Cjs9VOFBH7eVQ=", @@ -719,7 +750,7 @@ "type": "github" } }, - "nixpkgs_5": { + "nixpkgs_6": { "locked": { "lastModified": 1708475490, "narHash": "sha256-g1v0TsWBQPX97ziznfJdWhgMyMGtoBFs102xSYO4syU=", @@ -753,13 +784,14 @@ "root": { "inputs": { "agenix": "agenix", + "comin": "comin", "disko": "disko", "emacs-overlay": "emacs-overlay", "flake-parts": "flake-parts", "home-manager": "home-manager_2", "neovim-nightly-overlay": "neovim-nightly-overlay", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "nixpkgs-unstable": "nixpkgs-unstable", "nur": "nur", "stylix": "stylix", @@ -806,7 +838,7 @@ "flake-compat": "flake-compat_2", "gnome-shell": "gnome-shell", "home-manager": "home-manager_3", - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_5" }, "locked": { "lastModified": 1708896938, @@ -884,7 +916,7 @@ }, "treefmt-nix": { "inputs": { - "nixpkgs": "nixpkgs_5" + "nixpkgs": "nixpkgs_6" }, "locked": { "lastModified": 1709546977, diff --git a/flake.nix b/flake.nix index a5325ec1..b03b6ff8 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ # Utils agenix.url = "github:ryantm/agenix"; agenix.inputs.nixpkgs.follows = "nixpkgs"; + comin.url = "github:nlewo/comin"; disko.url = "github:nix-community/disko"; disko.inputs.nixpkgs.follows = "nixpkgs"; flake-parts.url = "github:hercules-ci/flake-parts"; diff --git a/hosts/home.nix b/hosts/home.nix index 736d82e4..7946af79 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -2,6 +2,7 @@ config, lib, pkgs, + inputs, ... }: with builtins; @@ -32,4 +33,21 @@ 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"; + } + ]; + }; }