perf: Home-manager to module
feat: Optionise config
This commit is contained in:
13
host/Rias/modules/grub.nix
Normal file
13
host/Rias/modules/grub.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ pkgs, ... }: let
|
||||
theme = pkgs.fetchFromGitHub {
|
||||
owner = "OliveThePuffin";
|
||||
repo = "yorha-grub-theme";
|
||||
rev = "4d9cd37baf56c4f5510cc4ff61be278f11077c81";
|
||||
hash = "sha256-XVzYDwJM7Q9DvdF4ZOqayjiYpasUeMhAWWcXtnhJ0WQ=";
|
||||
};
|
||||
in {
|
||||
boot.loader.grub = {
|
||||
gfxmodeEfi = "3440x1440";
|
||||
theme = "${theme}/yorha-2560x1440";
|
||||
};
|
||||
}
|
38
host/Rias/modules/syncthing.nix
Normal file
38
host/Rias/modules/syncthing.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ config, ... }: {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
|
||||
user = "sweetbread";
|
||||
dataDir = "/home/sweetbread/.config/syncthing";
|
||||
|
||||
key = config.sops.secrets.syncthing_key.path;
|
||||
cert = config.sops.secrets.syncthing_cert.path;
|
||||
|
||||
settings = {
|
||||
devices = {
|
||||
Akeno = { id = "YVFVE2M-GSCKJBJ-AMC5JM3-AOMCVNP-RLFAWEZ-35VP4HP-DGP5QD2-6QWEZQW"; };
|
||||
Koneko = { id = "PJFWQRY-ZFUBGDR-NV7KVBL-UBDQ4HT-KPTYP34-MUDFPJU-4EZUHTT-ZLYRMAB"; };
|
||||
};
|
||||
|
||||
folders = {
|
||||
"Books" = {
|
||||
path = "/mnt/D/SyncThing/Books";
|
||||
devices = [ "Akeno" "Koneko" ];
|
||||
};
|
||||
|
||||
".RPI" = {
|
||||
path = "/mnt/D/SyncThing/.RPI";
|
||||
devices = [ "Akeno" "Koneko" ];
|
||||
};
|
||||
|
||||
"Music" = {
|
||||
path = "/home/sweetbread/Music";
|
||||
devices = [ "Akeno" "Koneko" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||
}
|
Reference in New Issue
Block a user