Merge branch 'main' of github.com:tmayoff/.dotfiles

This commit is contained in:
Tyler Mayoff 2025-05-12 19:30:40 -04:00
commit 4a1cdbccd4
10 changed files with 86 additions and 73 deletions

View file

@ -48,22 +48,17 @@ in {
environment.systemPackages = with pkgs; [
pinentry_mac
# llvmPackages_19.clang-tools
fnm
pipenv
sketchybar
# sbarlua
lua
# android-tools
jdk17
# distrobox
conan
deno
@ -100,10 +95,7 @@ in {
"unzip"
"xz"
"podman"
"llvm@18"
"llvm@19"
"llvm"
];
casks = [

View file

@ -39,7 +39,7 @@
sessionVariables = {
ANDROID_HOME = "/Users/tyler.mayoff/Library/Android/sdk";
PATH = "$PATH:/opt/homebrew/opt/llvm@18/bin:/Users/tyler.mayoff/Library/Android/sdk/platform-tools";
PATH = "/opt/homebrew/opt/llvm@20/bin:$PATH::/Users/tyler.mayoff/Library/Android/sdk/platform-tools";
};
file.".gnupg/gpg-agent.conf".text = ''

View file

@ -156,6 +156,38 @@ in {
};
};
systemd.services."restore-nextcloud" = {
script = ''
# Remove keys
${secrets}
printf "\nRestore nextcloud \n"
${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" restore latest -vvv --target /
# ${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" check -vvv
'';
serviceConfig = {
Type = "simple";
User = "root";
};
};
systemd.services."restore-backups" = {
script = ''
# Remove keys
${secrets}
printf "\nRestore nextcloud \n"
${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/Backups" restore latest -vvv --target /
# ${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" check -vvv
'';
serviceConfig = {
Type = "simple";
User = "root";
};
};
programs.fish.enable = true;
# List services that you want to enable:

View file

@ -28,23 +28,11 @@
options = ["fmask=0022" "dmask=0022"];
};
fileSystems."/mnt/store" = {
device = "nix-store";
fileSystems."/mnt/user" = {
device = "array";
fsType = "9p";
};
fileSystems."/nix/store" = {
depends = [
"/mnt/store"
];
device = "/mnt/store";
fsType = "none";
options = [
"bind"
];
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -21,7 +21,6 @@
homeDirectory = "/home/tyler";
packages = with pkgs; [
ventoy
nom
# (config.lib.nixGL.wrap renderdoc)
];