add wallpapers, using git-lfs to manage it
This commit is contained in:
parent
c466bf231d
commit
bac7180c0c
6 changed files with 38 additions and 1 deletions
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
home/david/modules/wallpaper/pic/ filter=lfs diff=lfs merge=lfs -text
|
||||||
|
home/david/modules/wallpaper/pic/01.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
@ -28,6 +28,10 @@
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
david = {
|
||||||
|
wallpaper.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.userDirs = {
|
xdg.userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
download = "${config.home.homeDirectory}/dls";
|
download = "${config.home.homeDirectory}/dls";
|
||||||
|
|
|
||||||
|
|
@ -1 +1,6 @@
|
||||||
{ ... }: { }
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./wallpaper
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
||||||
22
home/david/modules/wallpaper/default.nix
Normal file
22
home/david/modules/wallpaper/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.david.wallpaper;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
david.wallpaper = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.file."wallpaper" = {
|
||||||
|
force = true;
|
||||||
|
recursive = true;
|
||||||
|
source = ./pic;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
BIN
home/david/modules/wallpaper/pic/01.png
(Stored with Git LFS)
Normal file
BIN
home/david/modules/wallpaper/pic/01.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -61,6 +61,7 @@
|
||||||
side-by-side = true;
|
side-by-side = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
lfs.enable = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
credential = {
|
credential = {
|
||||||
helper = "store --file=${config.sops.secrets."git-credential".path}";
|
helper = "store --file=${config.sops.secrets."git-credential".path}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue