Compare commits

...

4 Commits

Author SHA1 Message Date
Zynh Ludwig 5952138b85 repo-clone: sd-switch 2024-08-01 04:01:05 -07:00
Zynh Ludwig fb743989b4 repo-clone: basic config 2024-08-01 04:01:05 -07:00
Zynh Ludwig d8dae0b57d repo-clone: add module 2024-08-01 04:01:05 -07:00
Zynh Ludwig 5317efcc8d snowhawk: put nix src in src/ directory 2024-08-01 01:18:13 -07:00
4 changed files with 53 additions and 1 deletions

View File

@ -290,6 +290,21 @@
"type": "github"
}
},
"repo-clone": {
"locked": {
"lastModified": 1722509718,
"narHash": "sha256-VkdEMyhUl5RwyOsGsBzpA0WgDAWzEkngCrgiJAkQdr0=",
"ref": "refs/heads/main",
"rev": "b227fc74a6c24c8586ac0cee2e49400f3572957a",
"revCount": 43,
"type": "git",
"url": "https://git.zynh.me/Zynh0722/repo-clone"
},
"original": {
"type": "git",
"url": "https://git.zynh.me/Zynh0722/repo-clone"
}
},
"root": {
"inputs": {
"backgrounds": "backgrounds",
@ -298,6 +313,7 @@
"home-manager": "home-manager",
"neovim-overlay": "neovim-overlay",
"nixpkgs": "nixpkgs",
"repo-clone": "repo-clone",
"sops-nix": "sops-nix"
}
},

View File

@ -33,6 +33,8 @@
url = "github:d2718nis/rose-pine-dunst";
flake = false;
};
repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone";
};
outputs =

View File

@ -0,0 +1,31 @@
{ lib, config, inputs, ... }:
let
cfg = config.snowhawk.repo-clone;
in
{
imports = [
inputs.repo-clone.homeManagerModule
];
options.snowhawk.repo-clone = {
enable = lib.mkEnableOption "repo-clone home-manager module";
};
config = lib.mkIf cfg.enable {
systemd.user.startServices = "sd-switch";
repo-clone = {
enable = true;
repos =
let
home = config.home.homeDirectory;
zgitRepo = name: "https://git.zynh.me/Zynh0722/${name}.git";
in
{
"${home}/.config/nvim".url = zgitRepo "nvim";
"${home}/Pictures/backgrounds".url = zgitRepo "backgrounds";
};
};
};
}

View File

@ -30,6 +30,8 @@ in
homeNetwork = true;
};
snowhawk.repo-clone.enable = true;
snowhawk.flameshot.config = {
General = {
contrastOpacity = 188;
@ -84,7 +86,8 @@ in
];
home.file = {
nixpkgs.source = inputs.nixpkgs;
"src/nixpkgs".source = inputs.nixpkgs;
"src/home-manager".source = inputs.home-manager;
};
# wayland.windowManager.hyprland = {