Compare commits
3 commits
2d0fcbe30a
...
958a3367ba
Author | SHA1 | Date | |
---|---|---|---|
958a3367ba | |||
c748ff8608 | |||
e2b0cf0aaa |
4 changed files with 86 additions and 3 deletions
|
@ -144,6 +144,11 @@
|
|||
owner = "insert";
|
||||
group = "users";
|
||||
};
|
||||
age.secrets.borg = {
|
||||
file = /home/insert/Documents/nixos/secrets/borg.age;
|
||||
owner = "insert";
|
||||
group = "users";
|
||||
};
|
||||
|
||||
#home-manager.users.insert= { pkgs, ... }: {
|
||||
|
||||
|
|
19
flake.lock
19
flake.lock
|
@ -261,7 +261,24 @@
|
|||
"flatpaks": "flatpaks",
|
||||
"home-manager": "home-manager_2",
|
||||
"hyprland": "hyprland",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"sunshine": "sunshine"
|
||||
}
|
||||
},
|
||||
"sunshine": {
|
||||
"locked": {
|
||||
"lastModified": 1714035204,
|
||||
"narHash": "sha256-4ESBKQzr7Ngs2ryhc9/BlfO3qgkYRQOEn0xE6WdFH50=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "13e6ece4709970e8f36f2713366ee9902e6ef137",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "13e6ece4709970e8f36f2713366ee9902e6ef137",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
inputs = {
|
||||
# ...
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
sunshine.url = "github:NixOS/nixpkgs/13e6ece4709970e8f36f2713366ee9902e6ef137";
|
||||
flatpaks.url = "github:GermanBread/declarative-flatpak/dev";
|
||||
flatpaks.inputs.nixpkgs.follows = "nixpkgs";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
|
@ -14,7 +15,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, flatpaks, agenix, home-manager, ... } @ inputs: {
|
||||
outputs = { nixpkgs, sunshine, flatpaks, agenix, home-manager, ... } @ inputs: {
|
||||
nixosConfigurations.insertpclinux = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
|
@ -13,11 +13,18 @@
|
|||
# })) ];
|
||||
#boot.kernelPackages = pkgs.linuxPackages;
|
||||
|
||||
nixpkgs.overlays = [ (self: super: (let
|
||||
patched_pkgs = import inputs.sunshine {
|
||||
inherit (self) system;
|
||||
};
|
||||
in {
|
||||
services.sunshine = {
|
||||
package = patched_pkgs.sunshine;
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
};
|
||||
})) ];
|
||||
|
||||
hardware.nvidia = {
|
||||
|
||||
|
@ -44,6 +51,59 @@
|
|||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||
|
||||
};
|
||||
|
||||
services.borgbackup.jobs.insertpclinux = {
|
||||
paths = "/home/insert";
|
||||
encryption.mode = "repokey-blake2";
|
||||
encryption.passCommand = "cat ${config.age.secrets.borg.path}";
|
||||
compression = "auto,zstd";
|
||||
prune.keep = {
|
||||
within = "1d";
|
||||
daily = 10;
|
||||
weekly = 4;
|
||||
monthly = 2;
|
||||
};
|
||||
readWritePaths = [ "/mnt/NAS-backup/insertpclinux-insert" ];
|
||||
repo = "/mnt/NAS-backup/insertpclinux-insert";
|
||||
user = "insert";
|
||||
startAt = "daily";
|
||||
exclude = [
|
||||
"^data.img$"
|
||||
"^.Trash-100$"
|
||||
"/node.repl_history"
|
||||
"/.oldprofile"
|
||||
"/.steampath"
|
||||
"/mnt"
|
||||
"/.steampid"
|
||||
"/.zshenv"
|
||||
"/.zshrc"
|
||||
"/.android"
|
||||
"/.compose-cache"
|
||||
"/.docker"
|
||||
"/.gradle"
|
||||
"/.hyprland"
|
||||
"/.java"
|
||||
"/.kube"
|
||||
"/.minecraft-bta"
|
||||
"/.mozilla"
|
||||
"/.nix-defexpr"
|
||||
"/.nix-profile"
|
||||
"/.nv"
|
||||
"/.thunderbird"
|
||||
"/.zsh"
|
||||
"/Downloads"
|
||||
"/.cache"
|
||||
"/.var/app/*/cache"
|
||||
"/.local/share/flatpak/repo/"
|
||||
"/.local/share/Trash"
|
||||
"/.local/share/libvirt"
|
||||
"/.local/share/containers"
|
||||
"/.local/share/flatpak/overrides"
|
||||
"/.var/app/*/config/cache"
|
||||
"/.var/app/*/config"
|
||||
];
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
security.pki.certificateFiles = [
|
||||
|
|
Loading…
Reference in a new issue