mirror of
https://codeberg.org/hyperreal/nixos-configs
synced 2024-11-01 16:53:11 +01:00
Update
This commit is contained in:
parent
2a6c8db78a
commit
8785d7ecbc
@ -1,7 +1,3 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page, on
|
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
@ -54,6 +50,8 @@
|
|||||||
emacs28
|
emacs28
|
||||||
fblog
|
fblog
|
||||||
fd
|
fd
|
||||||
|
ffmpeg-full
|
||||||
|
firefox
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
glances
|
glances
|
||||||
@ -78,7 +76,6 @@
|
|||||||
kdePackages.tokodon
|
kdePackages.tokodon
|
||||||
kdePackages.yakuake
|
kdePackages.yakuake
|
||||||
lagrange
|
lagrange
|
||||||
librewolf
|
|
||||||
lsd
|
lsd
|
||||||
lynx
|
lynx
|
||||||
neovim
|
neovim
|
||||||
@ -139,6 +136,14 @@
|
|||||||
# Enable NetworkManager
|
# Enable NetworkManager
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Enable atop
|
||||||
|
programs.atop = {
|
||||||
|
enable = true;
|
||||||
|
atopRotateTimer.enable = true;
|
||||||
|
atopService.enable = true;
|
||||||
|
atopacctService.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Enable Zsh
|
# Enable Zsh
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
@ -253,49 +258,6 @@
|
|||||||
templates = null;
|
templates = null;
|
||||||
videos = null;
|
videos = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.borgmatic = {
|
|
||||||
enable = true;
|
|
||||||
backups = {
|
|
||||||
home = {
|
|
||||||
location = {
|
|
||||||
sourceDirectories = [ "/home/jas" ];
|
|
||||||
repositories = [
|
|
||||||
"/mnt/backup/moonshadow"
|
|
||||||
"/extpool/backup/moonshadow"
|
|
||||||
];
|
|
||||||
excludeHomeManagerSymlinks = true;
|
|
||||||
};
|
|
||||||
storage.encryptionPasscommand = "kwallet-query -r borg-repo default -f Passwords";
|
|
||||||
retention = {
|
|
||||||
keepDaily = 7;
|
|
||||||
keepWeekly = 4;
|
|
||||||
keepMonthly = 12;
|
|
||||||
keepYearly = 4;
|
|
||||||
};
|
|
||||||
consistency = {
|
|
||||||
checks = [
|
|
||||||
{
|
|
||||||
name = "repository";
|
|
||||||
frequency = "2 weeks";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "archives";
|
|
||||||
frequency = "4 weeks";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "data";
|
|
||||||
frequency = "6 weeks";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "extract";
|
|
||||||
frequency = "6 weeks";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Nix settings
|
# Nix settings
|
||||||
@ -330,16 +292,22 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# ZFS snapshots
|
# ZFS snapshots
|
||||||
services.zfs = {
|
services.znapzend = {
|
||||||
autoSnapshot = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
hourly = 24;
|
autoCreation = true;
|
||||||
daily = 7;
|
pure = true;
|
||||||
weekly = 4;
|
zetup = {
|
||||||
monthly = 6;
|
"rpool/home" = {
|
||||||
|
plan = "1d=>1h,1m=>1d,1y=>1m";
|
||||||
|
recursive = true;
|
||||||
|
destinations = {
|
||||||
|
remote = {
|
||||||
|
host = "root@10.0.0.81";
|
||||||
|
dataset = "coffeeNAS/moonshadow";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
trim.enable = true;
|
|
||||||
autoScrub.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
|
@ -255,7 +255,7 @@ themes {
|
|||||||
// Choose the theme that is specified in the themes section.
|
// Choose the theme that is specified in the themes section.
|
||||||
// Default: default
|
// Default: default
|
||||||
//
|
//
|
||||||
theme "catppuccin-mocha"
|
theme "gruvbox-dark"
|
||||||
|
|
||||||
// The name of the default layout to load on startup
|
// The name of the default layout to load on startup
|
||||||
// Default: "default"
|
// Default: "default"
|
||||||
|
@ -65,6 +65,9 @@
|
|||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# ZFS extpool
|
||||||
|
boot.zfs.extraPools = [ "extpool" ];
|
||||||
|
|
||||||
# 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
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
Loading…
Reference in New Issue
Block a user