l
This commit is contained in:
parent
4a35a0b6a4
commit
8d4176f4e6
@ -18,6 +18,7 @@
|
||||
../../modules/persist
|
||||
../../modules/gamemode
|
||||
../../modules/network/iwd.nix
|
||||
../../modules/syncthing
|
||||
../../users/root
|
||||
../../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;
|
||||
};
|
||||
};
|
||||
syncthing.folders = {
|
||||
notes = {
|
||||
enable = true;
|
||||
path = "${config.users.users.patriot.home}/notes";
|
||||
devices = ["redmi-phone"];
|
||||
ignorePerms = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
# gnome keyring better fr fr
|
||||
security.pam.services.patriot = {
|
||||
@ -93,7 +101,7 @@ in {
|
||||
# cli stuff
|
||||
["zoxide" "zsh" "fzf" "starship" "direnv"]
|
||||
# dev stuff
|
||||
["helix" "git" "ssh"]
|
||||
["helix" "git" "ssh" "obsidian"]
|
||||
];
|
||||
in
|
||||
l.flatten [
|
||||
@ -119,6 +127,7 @@ in {
|
||||
# caches / history stuff
|
||||
".directory_history"
|
||||
".cache"
|
||||
"notes"
|
||||
]
|
||||
++ mkPaths ".local/share" [
|
||||
"direnv"
|
||||
@ -172,7 +181,6 @@ in {
|
||||
cloudflared
|
||||
lutris
|
||||
protontricks
|
||||
obsidian
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
|
Loading…
Reference in New Issue
Block a user