This commit is contained in:
dusk 2022-08-15 03:49:56 +03:00
parent 4a35a0b6a4
commit 8d4176f4e6
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 27 additions and 2 deletions

View File

@ -18,6 +18,7 @@
../../modules/persist ../../modules/persist
../../modules/gamemode ../../modules/gamemode
../../modules/network/iwd.nix ../../modules/network/iwd.nix
../../modules/syncthing
../../users/root ../../users/root
../../users/patriot ../../users/patriot
] ]

View File

@ -0,0 +1,12 @@
{config, inputs, ...}: {
users.users.syncthing.extraGroups = ["users"];
services.syncthing = {
enable = true;
devices.redmi-phone = {
id = builtins.readFile "${inputs.self}/secrets/redmi-phone.syncthing.id";
introducer = true;
autoAcceptFolders = true;
};
dataDir = "${config.system.persistDir}/syncthing";
};
}

Binary file not shown.

View File

@ -0,0 +1,4 @@
{pkgs, config, lib, ...}: {
home.packages = [pkgs.obsidian];
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [".config/obsidian"];
}

View File

@ -63,6 +63,14 @@ in {
isSystem = false; isSystem = false;
}; };
}; };
syncthing.folders = {
notes = {
enable = true;
path = "${config.users.users.patriot.home}/notes";
devices = ["redmi-phone"];
ignorePerms = true;
};
};
}; };
# gnome keyring better fr fr # gnome keyring better fr fr
security.pam.services.patriot = { security.pam.services.patriot = {
@ -93,7 +101,7 @@ in {
# cli stuff # cli stuff
["zoxide" "zsh" "fzf" "starship" "direnv"] ["zoxide" "zsh" "fzf" "starship" "direnv"]
# dev stuff # dev stuff
["helix" "git" "ssh"] ["helix" "git" "ssh" "obsidian"]
]; ];
in in
l.flatten [ l.flatten [
@ -119,6 +127,7 @@ in {
# caches / history stuff # caches / history stuff
".directory_history" ".directory_history"
".cache" ".cache"
"notes"
] ]
++ mkPaths ".local/share" [ ++ mkPaths ".local/share" [
"direnv" "direnv"
@ -172,7 +181,6 @@ in {
cloudflared cloudflared
lutris lutris
protontricks protontricks
obsidian
]; ];
}; };
programs = { programs = {