Flake for my NixOS devices
at silly-iso 21 lines 498 B view raw
1{...}: { 2 config, 3 lib, 4 ... 5}: { 6 options.cow.pictures = { 7 enable = lib.mkEnableOption "Enable setting profile picture"; 8 pfp = lib.mkOption { 9 type = lib.types.path; 10 description = "Path to Profile Picture File (PNG, 1:1 Aspect)"; 11 }; 12 bg = lib.mkOption { 13 type = lib.types.path; 14 description = "Path to the background image to use"; 15 }; 16 }; 17 18 config = lib.mkIf config.cow.pictures.enable { 19 home.file.".face".source = config.cow.pictures.pfp; 20 }; 21}