Compare commits
No commits in common. "ef79df7e51c2edf4eb691f83d12682295ae5d4be" and "ca8570f469f63170b00943fd21920b5744ec18bc" have entirely different histories.
ef79df7e51
...
ca8570f469
4 changed files with 22 additions and 66 deletions
|
|
@ -57,7 +57,28 @@
|
|||
crony.emulators.enable = true;
|
||||
# crony.emacs.enable = true;
|
||||
crony.zen-browser.enable = true;
|
||||
crony.lnxlink.enable = true;
|
||||
|
||||
home.packages = [
|
||||
inputs.lnxlink.packages.${pkgs.system}.default
|
||||
];
|
||||
|
||||
systemd.user.services.lnxlink = {
|
||||
Unit = {
|
||||
Description = "LNXLlink";
|
||||
After = ["network-online.target" "mutli-user.target" "graphical.target"];
|
||||
PartOf = ["graphical-session.target"];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
Service = {
|
||||
WorkingDirectory = "/home/crony/.config/lnxlink";
|
||||
Type = "simple";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
ExecStart = "${inputs.lnxlink.packages.${pkgs.system}.default}/bin/lnxlink --config /home/crony/.config/lnxlink/config.yaml";
|
||||
};
|
||||
};
|
||||
|
||||
# DO NOT CHANGE ALSO
|
||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
./secrets.nix
|
||||
./emacs.nix
|
||||
./zen-browser.nix
|
||||
./lnxlink.nix
|
||||
];
|
||||
|
||||
crony.river.enable = lib.mkDefault false;
|
||||
|
|
@ -45,5 +44,4 @@
|
|||
crony.home-secrets.enable = lib.mkDefault false;
|
||||
crony.emacs.enable = lib.mkDefault false;
|
||||
crony.zen-browser.enable = lib.mkDefault false;
|
||||
crony.lnxlink.enable = lib.mkDefault false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.lnxlink.enable = lib.mkEnableOption "Enable and setup lnxlink.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.lnxlink.enable {
|
||||
home.packages = [
|
||||
inputs.lnxlink.packages.${pkgs.system}.default
|
||||
];
|
||||
|
||||
systemd.user.services.lnxlink = {
|
||||
Unit = {
|
||||
Description = "LNXLlink";
|
||||
After = ["network-online.target" "mutli-user.target" "graphical.target"];
|
||||
PartOf = ["graphical-session.target"];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
Service = {
|
||||
WorkingDirectory = "/home/crony/.config/lnxlink";
|
||||
Type = "simple";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
ExecStart = "${inputs.lnxlink.packages.${pkgs.system}.default}/bin/lnxlink --config /home/crony/.config/lnxlink/config.yaml";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
home,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
|
|
@ -25,32 +24,5 @@
|
|||
beets
|
||||
croc
|
||||
];
|
||||
|
||||
programs.rclone = {
|
||||
enable = true;
|
||||
remotes = {
|
||||
homeassistant = {
|
||||
config = {
|
||||
type = "sftp";
|
||||
host = "assistant.home.cronyakatsuki.xyz";
|
||||
user = "root";
|
||||
key_file = "${config.home.homeDirectory}/.ssh/main";
|
||||
};
|
||||
mounts = {
|
||||
"/var/lib/homeassistant" = {
|
||||
enable = true;
|
||||
mountPoint = "/home/crony/docs/assistant";
|
||||
options = {
|
||||
default-permissions = true;
|
||||
vfs-cache-mode = "writes";
|
||||
buffer-size = "64M";
|
||||
multi-thread-streams = 4;
|
||||
multi-thread-cutoff = "250M";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue