mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Cleanup
This commit is contained in:
parent
2b19363fbc
commit
f6e4dea468
3 changed files with 35 additions and 15 deletions
|
|
@ -61,7 +61,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
./machines/mal/configuration.nix
|
./machines/mal/configuration.nix
|
||||||
|
|
||||||
lix-module.nixosModules.default
|
# lix-module.nixosModules.default
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,38 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services."restore-nextcloud" = {
|
||||||
|
script = ''
|
||||||
|
# Remove keys
|
||||||
|
|
||||||
|
${secrets}
|
||||||
|
|
||||||
|
printf "\nRestore nextcloud \n"
|
||||||
|
${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" restore latest -vvv --target /
|
||||||
|
# ${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" check -vvv
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
User = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services."restore-backups" = {
|
||||||
|
script = ''
|
||||||
|
# Remove keys
|
||||||
|
|
||||||
|
${secrets}
|
||||||
|
|
||||||
|
printf "\nRestore nextcloud \n"
|
||||||
|
${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/Backups" restore latest -vvv --target /
|
||||||
|
# ${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" check -vvv
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
User = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
|
||||||
|
|
@ -28,23 +28,11 @@
|
||||||
options = ["fmask=0022" "dmask=0022"];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/store" = {
|
fileSystems."/mnt/user" = {
|
||||||
device = "nix-store";
|
device = "array";
|
||||||
fsType = "9p";
|
fsType = "9p";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix/store" = {
|
|
||||||
depends = [
|
|
||||||
"/mnt/store"
|
|
||||||
];
|
|
||||||
|
|
||||||
device = "/mnt/store";
|
|
||||||
fsType = "none";
|
|
||||||
options = [
|
|
||||||
"bind"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [];
|
swapDevices = [];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue