-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
280 additions
and
224 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
./media.nix | ||
./schizofox.nix | ||
./rnnoise.nix | ||
./syncthing.nix | ||
./swayidle.nix | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
{config, ...}: let | ||
let | ||
sioodmy = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE9ExEl6WqtCI4yCqbSAhAGmzvVp/nYADbgy/Qi4AKQy sioodmy@anthe"; | ||
|
||
anthe = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC3LBESPBY559NbAJ7KL/+K4S5InhWf5YDQgl2XjT5ZxTtPg0x24IDcEmxrPi+7nKSAvMJCkneTfWHPYoRYrNA/G15a+Pqr/9w1EtuK+D054qtz2q+oUM029JdTP/0qzbKxAV/qzUXyJyrgcGRnRYhFRKmg3Sl7G7mxhYN20RIYL3ENXnpfculGrnqX8yONda7YRQfjyEQAsLUIS4aEN7pQsUGO2lGzvXueHcRGRflbatVD59REWoD5kYE984EVhgbky092HHhDR5rIFnFJygrhl9irYk7x6Un98qsvKBeRKzpNMZ1iqs8EFdSbayNdRimooSyFLx83pUhx7SY01cJXxuVmW8Rec9xgnW8rrclz2H+ArQHSZQz/T/QPH2zZgtE3A2xX5HsmQnCu/h7yOpwD6ULTyR8/xK61jHgx4AM1hLyGGrMoPailSXyvT9OGnmXuvcIrx8R2oHy7e48DGWiTHoW8+nltWURkUjdolg373ruLxT+Rqf1JFgPcFwCEVSjVxtTz33ljFD31OOKjs5O2y/9jndwcx54twlgLr+H/6Y1SWIPNeuhNO3IiGuFkH3+JLrQLXVN9UIE1/qHyOIIJpR3ONd4uW6xDsnl8SBZUWuYf468FQGHkinWZxdYdi1SlHbulXxGPTiRjqSUBeR9fB+CND2WJEvfeSJccofk29w== root@anthe"; | ||
in { | ||
age.identityPaths = | ||
if config.custom.impermanence.enable | ||
then [ | ||
"/persist/home/sioodmy/.ssh/id_ed25519" | ||
] | ||
else [ | ||
"/home/sioodmy/.ssh/id_ed25519" | ||
]; | ||
age.identityPaths = "/persist/home/sioodmy/.ssh/id_ed25519"; | ||
"spotify.age".publicKeys = [sioodmy anthe]; | ||
"syncthing-key.age".publicKeys = [sioodmy anthe]; | ||
"syncthing-cert.age".publicKeys = [sioodmy anthe]; | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{config, ... }: { | ||
networking.firewall.allowedTCPPorts = [8384]; | ||
services.syncthing = let | ||
hm = "/home/sioodmy"; | ||
in { | ||
enable = true; | ||
systemService = true; | ||
user = "sioodmy"; | ||
configDir = "${hm}/.config/syncthing"; | ||
dataDir = "${hm}/.config/syncthing"; | ||
openDefaultPorts = true; | ||
guiAddress = "127.0.0.1:8384"; | ||
overrideDevices = true; | ||
overrideFolders = true; | ||
key = config.age.secrets.syncthing-key.path; | ||
cert = config.age.secrets.syncthing-cert.path; | ||
settings = { | ||
devices = { | ||
"methone" = {id = "FDHPTFD-BJK2ER6-2C4A5DU-5VMUAOF-M4VGKM2-VZJS5IT-KP7ADOQ-UEFJLAU";}; | ||
}; | ||
folders = { | ||
"photos" = { | ||
id = "pixel_7_pro_6dj3-photos"; | ||
path = "${hm}/pics/cam"; | ||
devices = ["methone"]; | ||
versioning = { | ||
type = "staggered"; | ||
params = { | ||
cleanInterval = "3600"; # 1 hour | ||
maxAge = "1209600"; # 14 days | ||
}; | ||
}; | ||
}; | ||
"keepass" = { | ||
id = "wwm5g-uhgoz"; | ||
path = "${hm}/.keepass"; | ||
devices = ["methone"]; | ||
versioning = { | ||
type = "staggered"; | ||
params = { | ||
cleanInterval = "3600"; # 1 hour | ||
maxAge = "1209600"; # 14 days | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
# credits: Ramblurr | ||
# https://github.com/Ramblurr/nixcfg/blob/7343640bd4f5474eeba3b115424c2b0ccc809858/hosts/unstable/x86_64-linux/quine/syncthing.nix#L103 | ||
# FIX: home-manager impermanence | ||
# when using with home-manager impermanence we need to ensure that home-manager activates before | ||
# syncthing. otherwise the syncthing init will create ~/.config/syncthing, but ~/.config will be created | ||
# with root:root ownership. | ||
systemd.services.syncthing.after = ["home-manager-sioodmy.service"]; | ||
systemd.services.syncthing-init.after = ["home-manager-sioodmy.service"]; | ||
# END FIX: home-manager impermanence | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ | |
enable = true; | ||
extraPortals = [ | ||
pkgs.xdg-desktop-portal-gtk | ||
pkgs.xdg-desktop-portal-hyprland | ||
]; | ||
}; | ||
|
||
|