From c49fd7b485653cfcff260e8e1d61341ab3d36cbb Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 26 Aug 2024 00:43:36 -0700 Subject: [PATCH] feat: fetch wallpapers remotely as flake input --- flake.lock | 19 ++++++++++++++++++- flake.nix | 5 +++++ users/youwen/linux/home.nix | 4 ++-- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 371f08b..3a3147b 100755 --- a/flake.lock +++ b/flake.lock @@ -872,7 +872,8 @@ "personal-neovim": "personal-neovim", "spicetify": "spicetify", "stablepkgs": "stablepkgs", - "vesktop-bin": "vesktop-bin" + "vesktop-bin": "vesktop-bin", + "wallpapers": "wallpapers" } }, "rust-overlay": { @@ -1068,6 +1069,22 @@ "repo": "vesktop-bin-flake", "type": "github" } + }, + "wallpapers": { + "flake": false, + "locked": { + "lastModified": 1724657366, + "narHash": "sha256-i0lo2ktQPcnAObhsSIY2SoENEjszdQduQh+jqz7gGUs=", + "ref": "refs/heads/main", + "rev": "0cc9bdb3dc8222f1761ce66d4ea35cba297b8be2", + "revCount": 3, + "type": "git", + "url": "https://code.youwen.dev/youwen5/wallpapers" + }, + "original": { + "type": "git", + "url": "https://code.youwen.dev/youwen5/wallpapers" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index f6bc17c..6b0498d 100755 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,11 @@ personal-neovim.url = "github:youwen5/neovim-flake"; vesktop-bin.url = "github:youwen5/vesktop-bin-flake"; + + wallpapers = { + url = "git+https://code.youwen.dev/youwen5/wallpapers"; + flake = false; + }; }; outputs = { diff --git a/users/youwen/linux/home.nix b/users/youwen/linux/home.nix index ecfd013..178c176 100755 --- a/users/youwen/linux/home.nix +++ b/users/youwen/linux/home.nix @@ -1,5 +1,5 @@ { - config, + inputs, pkgs, ... }: { @@ -22,7 +22,7 @@ # ''; home.file.".wallpapers" = { - source = ../../../wallpapers; + source = inputs.wallpapers; recursive = true; };