aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-18 23:45:10 +0100
committerene <ene@sils.li>2023-02-18 23:45:10 +0100
commit47dfde54f5e753a2b14a63aad7e6995ee66bd1a3 (patch)
treec2f31b4eb4247e9aaf023ae02df27c0eb9f6e569
parentFeat: Move (nearly all) packages to user configs (diff)
downloadnixos-config-47dfde54f5e753a2b14a63aad7e6995ee66bd1a3.zip
Fix: Add snap-sync through the nix flake
-rw-r--r--flake.lock17
-rw-r--r--flake.nix10
-rw-r--r--home-manager/packages/default.nix9
3 files changed, 28 insertions, 8 deletions
diff --git a/flake.lock b/flake.lock
index dbe65c59..de8cf12a 100644
--- a/flake.lock
+++ b/flake.lock
@@ -189,6 +189,7 @@
"impermanence": "impermanence",
"neovim_config": "neovim_config",
"nixpkgs": "nixpkgs",
+ "snap-sync": "snap-sync",
"strip_js_comments": "strip_js_comments",
"user_js": "user_js"
}
@@ -220,6 +221,22 @@
"type": "github"
}
},
+ "snap-sync": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1653097113,
+ "narHash": "sha256-jKoGBh8dtS9XZkUuZZcLDqreMUdyVZ16z1+Xc63TC4Q=",
+ "owner": "qubidt",
+ "repo": "snap-sync",
+ "rev": "84e2ad00800cf43d0952b61add7e77797eced82d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "qubidt",
+ "repo": "snap-sync",
+ "type": "github"
+ }
+ },
"strip_js_comments": {
"inputs": {
"crane": "crane",
diff --git a/flake.nix b/flake.nix
index 58821993..bd8a8d48 100644
--- a/flake.nix
+++ b/flake.nix
@@ -13,6 +13,9 @@
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
+ impermanence = {
+ url = "github:nix-community/impermanence";
+ };
neovim_config = {
url = "git+https://codeberg.org/ene/neovim-config.git";
@@ -29,8 +32,9 @@
flake = false;
};
- impermanence = {
- url = "github:nix-community/impermanence";
+ snap-sync = {
+ url = "github:qubidt/snap-sync";
+ flake = false;
};
};
@@ -43,6 +47,7 @@
user_js,
impermanence,
agenix,
+ snap-sync,
...
} @ inputs: {
nixosConfigurations.Tiamat = nixpkgs.lib.nixosSystem rec {
@@ -64,6 +69,7 @@
inherit system;
inherit neovim_config;
inherit impermanence;
+ inherit snap-sync;
};
};
}
diff --git a/home-manager/packages/default.nix b/home-manager/packages/default.nix
index 4381a76c..67e29879 100644
--- a/home-manager/packages/default.nix
+++ b/home-manager/packages/default.nix
@@ -6,14 +6,11 @@
inputs,
user_js,
impermanence,
- resholve,
+ snap-sync,
...
}:
with pkgs; let
- snap-sync = resholve.writeScriptBun "snap-sync" {
- inputs = [];
- interpreter = "${pkgs.dash}/bin/dash";
- } (builtins.readFile ./scritps/snap-sync/bin/snap-sync);
+ snap-sync-pkgs = pkgs.writeShellScriptBin "snap-sync" (builtins.readFile "${snap-sync}/bin/snap-sync");
Gui = {
# Terminals = [
@@ -266,6 +263,6 @@ with pkgs; let
#xorg-bdftopcf # Convert X font from Bitmap Distribution Format to Portable Compiled Format
in {
home.packages = [
- snap-sync
+ snap-sync-pkgs
];
}