remove agenix
This commit is contained in:
parent
4560acb90b
commit
73b56555a6
@ -16,7 +16,6 @@
|
|||||||
./steam.nix
|
./steam.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
||||||
inputs.agenix.nixosModules.default
|
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||||
inputs.chaotic.nixosModules.default
|
inputs.chaotic.nixosModules.default
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
@ -210,8 +209,6 @@
|
|||||||
|
|
||||||
dmidecode
|
dmidecode
|
||||||
|
|
||||||
# (inputs.agenix.packages.${pkgs.system}.default.override { ageBin = "${pkgs.rage}/bin/rage"; })
|
|
||||||
|
|
||||||
doas-sudo-shim
|
doas-sudo-shim
|
||||||
|
|
||||||
glib
|
glib
|
||||||
|
|||||||
63
flake.lock
generated
63
flake.lock
generated
@ -1,30 +1,5 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"agenix": {
|
|
||||||
"inputs": {
|
|
||||||
"darwin": "darwin",
|
|
||||||
"home-manager": [
|
|
||||||
"home-manager"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1750173260,
|
|
||||||
"narHash": "sha256-9P1FziAwl5+3edkfFcr5HeGtQUtrSdk/MksX39GieoA=",
|
|
||||||
"owner": "ryantm",
|
|
||||||
"repo": "agenix",
|
|
||||||
"rev": "531beac616433bac6f9e2a19feb8e99a22a66baf",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "ryantm",
|
|
||||||
"repo": "agenix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"chaotic": {
|
"chaotic": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-schemas": "flake-schemas",
|
"flake-schemas": "flake-schemas",
|
||||||
@ -67,28 +42,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"darwin": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"agenix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1744478979,
|
|
||||||
"narHash": "sha256-dyN+teG9G82G+m+PX/aSAagkC+vUv0SgUw3XkPhQodQ=",
|
|
||||||
"owner": "lnl7",
|
|
||||||
"repo": "nix-darwin",
|
|
||||||
"rev": "43975d782b418ebf4969e9ccba82466728c2851b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "lnl7",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": "nix-darwin",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"disko": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -418,7 +371,6 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
|
||||||
"chaotic": "chaotic",
|
"chaotic": "chaotic",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"emacs-overlay": "emacs-overlay",
|
"emacs-overlay": "emacs-overlay",
|
||||||
@ -472,21 +424,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"xwayland-satellite-stable": {
|
"xwayland-satellite-stable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|||||||
@ -12,12 +12,6 @@
|
|||||||
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
|
||||||
agenix = {
|
|
||||||
url = "github:ryantm/agenix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.home-manager.follows = "home-manager";
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -64,7 +58,6 @@
|
|||||||
nixpkgs,
|
nixpkgs,
|
||||||
lanzaboote,
|
lanzaboote,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
agenix,
|
|
||||||
home-manager,
|
home-manager,
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
|
|||||||
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
# notification daemon
|
# notification daemon
|
||||||
./progs/dunst.nix
|
./progs/dunst.nix
|
||||||
|
|
||||||
|
./progs/borg.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@ -40,21 +42,6 @@
|
|||||||
Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
||||||
};
|
};
|
||||||
|
|
||||||
age.secrets.borg-laptop-password = {
|
|
||||||
file = ./secrets/borg-laptop-password.age;
|
|
||||||
path = "${homeDirectory}/.secrets/borg_bak_pass";
|
|
||||||
};
|
|
||||||
|
|
||||||
# backup utility
|
|
||||||
programs.borgmatic = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.borgmatic;
|
|
||||||
backups = import ./progs/borg.nix {
|
|
||||||
borgPasswordFile = config.age.secrets.borg-laptop-password.path;
|
|
||||||
inherit homeDirectory;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.niri.settings.outputs = {
|
programs.niri.settings.outputs = {
|
||||||
"BOE 0x095F Unknown" = {
|
"BOE 0x095F Unknown" = {
|
||||||
scale = 1.5;
|
scale = 1.5;
|
||||||
|
|||||||
@ -100,7 +100,6 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
./progs/fish.nix
|
./progs/fish.nix
|
||||||
./progs/helix.nix
|
./progs/helix.nix
|
||||||
inputs.agenix.homeManagerModules.age
|
|
||||||
(
|
(
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
@ -171,7 +170,6 @@ in
|
|||||||
clang
|
clang
|
||||||
gdb
|
gdb
|
||||||
|
|
||||||
age
|
|
||||||
git-crypt
|
git-crypt
|
||||||
|
|
||||||
imagemagick
|
imagemagick
|
||||||
|
|||||||
@ -1,51 +1,53 @@
|
|||||||
{ homeDirectory, borgPasswordFile }:
|
{ pkgs, homeDirectory, ... }:
|
||||||
{
|
{
|
||||||
|
programs.borgmatic = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.borgmatic;
|
||||||
|
backups = {
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
location = {
|
location = {
|
||||||
sourceDirectories = (
|
sourceDirectories = (
|
||||||
map (f: "${homeDirectory}/${f}") [
|
map (f: "${homeDirectory}/${f}") [
|
||||||
".zen"
|
".zen"
|
||||||
".local/share/fish"
|
".local/share/fish"
|
||||||
".ssh"
|
".ssh"
|
||||||
"Documents"
|
"Documents"
|
||||||
"projects"
|
"projects"
|
||||||
"Pictures"
|
"Pictures"
|
||||||
"school"
|
"school"
|
||||||
]
|
]
|
||||||
++ (map (f: ".config/Signal/${f}") [
|
++ (map (f: ".config/Signal/${f}") [
|
||||||
"stickers.noindex"
|
"stickers.noindex"
|
||||||
"attachments.noindex"
|
"attachments.noindex"
|
||||||
"downloads.noindex"
|
"downloads.noindex"
|
||||||
"drafts.noindex"
|
"drafts.noindex"
|
||||||
"sql"
|
"sql"
|
||||||
"IndexedDB"
|
"IndexedDB"
|
||||||
"Local Storage"
|
"Local Storage"
|
||||||
"SharedStorage"
|
"SharedStorage"
|
||||||
"config.json"
|
"config.json"
|
||||||
"ephemeral.json"
|
"ephemeral.json"
|
||||||
"Preferences"
|
"Preferences"
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
|
|
||||||
excludeHomeManagerSymlinks = true;
|
excludeHomeManagerSymlinks = true;
|
||||||
repositories = [ "ssh://server-public/tank/bak/laptop" ];
|
repositories = [ "ssh://server-public/tank/bak/laptop" ];
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
compression = "zstd";
|
compression = "zstd";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
retention = {
|
||||||
|
keepHourly = 48;
|
||||||
|
keepDaily = 30;
|
||||||
|
keepWeekly = 26;
|
||||||
|
keepMonthly = 24;
|
||||||
|
keepYearly = 10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
retention = {
|
|
||||||
keepHourly = 48;
|
|
||||||
keepDaily = 30;
|
|
||||||
keepWeekly = 26;
|
|
||||||
keepMonthly = 24;
|
|
||||||
keepYearly = 10;
|
|
||||||
};
|
|
||||||
|
|
||||||
storage = {
|
|
||||||
encryptionPasscommand = "cat ${borgPasswordFile}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 JlUYaQ 0zR1i7aaaTiNatQ64adSfLAes3mxyErq3kZUziRInVc
|
|
||||||
A8sfonsw2iodHRFsmYbmMNAviEUFSy9mkXuq6jefki8
|
|
||||||
-> ssh-ed25519 dHDJgQ CmnVM06YvF+mzPNF1LsHdyL1hk+d/yH3HTBcdRlX/2c
|
|
||||||
79u1EAd+g/Cmb9TzAifO4VHqJZk5T88nP4DWfsJEuIw
|
|
||||||
-> >=ei241-grease co`|!7_c lx{qy
|
|
||||||
A6d8YS1s8NZojKmRVWhmJDzOOFT/AEO/IRZN0LI30QP3jImoTJ4EFDQUm4p+0IWk
|
|
||||||
dam3RKxF7XzF6dNigGDKKeIVXcSX1SiEgHyIo0+hPm2nZbM/p1IJ6fsACbTB6Q
|
|
||||||
--- /Za+90oVP7/fGDLBRr6s56UopJjz8f851js/htBcYWA
|
|
||||||
6e0Y¼ìT0|`Hö”à>`æbª.å XãG«<47>Xs1ãn.µï$×o
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
let
|
|
||||||
laptop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4jL6gYOunUlUtPvGdML0cpbKSsPNqQ1jit4E7U1RyH";
|
|
||||||
desktop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJjT5QZ3zRDb+V6Em20EYpSEgPW5e/U+06uQGJdraxi";
|
|
||||||
in
|
|
||||||
(builtins.listToAttrs (
|
|
||||||
map
|
|
||||||
(f: {
|
|
||||||
f.publicKeys = [
|
|
||||||
laptop
|
|
||||||
desktop
|
|
||||||
];
|
|
||||||
})
|
|
||||||
[
|
|
||||||
"borg-laptop-password.age"
|
|
||||||
]
|
|
||||||
))
|
|
||||||
Loading…
x
Reference in New Issue
Block a user