Compare commits
No commits in common. "719eda9db99c8520e2fb05155b8d2ddf77029bf8" and "0ecd143b89aa3e301e5cae2577a4b30b3a90592c" have entirely different histories.
719eda9db9
...
0ecd143b89
|
@ -130,7 +130,6 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
alejandra
|
|
||||||
restic
|
restic
|
||||||
htop
|
htop
|
||||||
cloudflared
|
cloudflared
|
||||||
|
|
|
@ -9,56 +9,12 @@
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home.username = "sondell";
|
home.username = "sondell";
|
||||||
home.homeDirectory = "/home/sondell";
|
home.homeDirectory = "/home/sondell";
|
||||||
programs = {
|
programs.ssh.addKeysToAgent = "yes";
|
||||||
ssh.addKeysToAgent = "yes";
|
programs.ssh.enable = true;
|
||||||
ssh.enable = true;
|
programs.ssh.matchBlocks."*".identityFile = [
|
||||||
ssh.matchBlocks."*".identityFile = [
|
|
||||||
"/home/sondell/.ssh/tulpan"
|
"/home/sondell/.ssh/tulpan"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
home-manager.enable = true;
|
|
||||||
|
|
||||||
helix = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
languages = {
|
|
||||||
language = [
|
|
||||||
{
|
|
||||||
name = "nix";
|
|
||||||
auto-format = true;
|
|
||||||
formatter = {command = "alejandra";};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "python";
|
|
||||||
auto-format = true;
|
|
||||||
formatter = {
|
|
||||||
command = "black";
|
|
||||||
args = ["-q" "--fast" "-"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
# theme = "nightfox";
|
|
||||||
keys.normal = {
|
|
||||||
C-up = "expand_selection";
|
|
||||||
C-down = "shrink_selection";
|
|
||||||
C-left = "select_prev_sibling";
|
|
||||||
C-right = "select_next_sibling";
|
|
||||||
};
|
|
||||||
editor = {
|
|
||||||
cursor-shape = {
|
|
||||||
insert = "bar";
|
|
||||||
};
|
|
||||||
line-number = "relative";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value determines the Home Manager release that your
|
# This value determines the Home Manager release that your
|
||||||
# configuration is compatible with. This helps avoid breakage
|
# configuration is compatible with. This helps avoid breakage
|
||||||
# when a new Home Manager release introduces backwards
|
# when a new Home Manager release introduces backwards
|
||||||
|
@ -68,4 +24,7 @@ programs = {
|
||||||
# the Home Manager release notes for a list of state version
|
# the Home Manager release notes for a list of state version
|
||||||
# changes in each release.
|
# changes in each release.
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself.
|
||||||
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,24 +11,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.restic.backups = {
|
|
||||||
"vaultwarden" = {
|
|
||||||
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
|
||||||
repository = "sftp:Glenn@nas:/home/back/vaultwarden/restic";
|
|
||||||
initialize = true;
|
|
||||||
paths = [
|
|
||||||
"/var/lib/bitwarden_rs"
|
|
||||||
];
|
|
||||||
user = "sondell";
|
|
||||||
timerConfig.OnCalendar = "02:05";
|
|
||||||
pruneOpts = [
|
|
||||||
"--keep-daily 10"
|
|
||||||
"--keep-weekly 5"
|
|
||||||
"--keep-monthly 12"
|
|
||||||
"--keep-yearly 75"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.nginx.virtualHosts.${domain} = {
|
services.nginx.virtualHosts.${domain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in a new issue