this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: use Nix to download wallpaper

And remove SSH keygen, because I may get it from a password manager, or
TPM, or generate new key depending on the host or if I feel like it.

+6 -12
+6 -12
users/khuedoan/default.nix
··· 70 70 home = { 71 71 stateVersion = "23.05"; 72 72 activation = { 73 - # TODO optimize this? 74 73 dotfiles = '' 75 74 set -eu 76 - 77 75 [ -d ~/.git ] \ 78 76 || ${pkgs.git}/bin/git init \ 79 77 && ${pkgs.git}/bin/git config status.showUntrackedFiles no \ ··· 81 79 && (until ${pkgs.iputils}/bin/ping -c 1 github.com; do sleep 1; done) \ 82 80 && ${pkgs.git}/bin/git pull origin master \ 83 81 && ${pkgs.git}/bin/git branch --set-upstream-to=origin/master master 84 - 85 - [ -d ~/Pictures/Wallpapers ] \ 86 - || ${pkgs.curl}/bin/curl \ 87 - --location \ 88 - https://github.com/user-attachments/assets/b63195d0-7fe3-4ab5-95c7-20127123836c \ 89 - --output ~/Pictures/Wallpapers/astronaut-jellyfish.jpg \ 90 - --create-dirs 91 - 92 - [ -d ~/.ssh ] \ 93 - || ${pkgs.openssh}/bin/ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N "" 94 82 ''; 83 + }; 84 + file = { 85 + "Pictures/Wallpapers/astronaut-jellyfish.jpg".source = builtins.fetchurl { 86 + url = "https://github.com/user-attachments/assets/b63195d0-7fe3-4ab5-95c7-20127123836c"; 87 + sha256 = "1g120j4z6665j4wh2g84m4rb24gvzdxyhx9lqym68cwn8ny2j7fz"; # nix-prefetch-url 88 + }; 95 89 }; 96 90 }; 97 91 services = {