l
This commit is contained in:
parent
4a35a0b6a4
commit
8d4176f4e6
@ -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
|
||||||
]
|
]
|
||||||
|
12
modules/syncthing/default.nix
Normal file
12
modules/syncthing/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
BIN
secrets/redmi-phone.syncthing.id
Normal file
BIN
secrets/redmi-phone.syncthing.id
Normal file
Binary file not shown.
4
users/modules/obsidian/default.nix
Normal file
4
users/modules/obsidian/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{pkgs, config, lib, ...}: {
|
||||||
|
home.packages = [pkgs.obsidian];
|
||||||
|
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [".config/obsidian"];
|
||||||
|
}
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user