Compare commits

..

No commits in common. "d14f499783f8cfaf4d2cbaf04cefa8ae1b2954f0" and "5def708423e174acc902e5f14526e6d65099dcc5" have entirely different histories.

7 changed files with 89 additions and 119 deletions

69
flake.lock generated
View file

@ -96,27 +96,6 @@
"type": "github" "type": "github"
} }
}, },
"dns": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1635273082,
"narHash": "sha256-EHiDP2jEa7Ai5ZwIf5uld9RVFcV77+2SUxjQXwJsJa0=",
"owner": "nix-community",
"repo": "dns.nix",
"rev": "c7b9645da9c0ddce4f9de4ef27ec01bb8108039a",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "dns.nix",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -155,21 +134,6 @@
} }
}, },
"flake-utils": { "flake-utils": {
"locked": {
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5466c5bbece17adaab2d82fae80b46e807611bf3",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"inputs": { "inputs": {
"systems": "systems_2" "systems": "systems_2"
}, },
@ -216,11 +180,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713294767, "lastModified": 1712759992,
"narHash": "sha256-LmaabaQZdx52MPGKPRt9Opoc9Gd9RbwvCdysUUYQoXI=", "narHash": "sha256-2APpO3ZW4idlgtlb8hB04u/rmIcKA8O7pYqxF66xbNY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "fa8c16e2452bf092ac76f09ee1fb1e9f7d0796e7", "rev": "31357486b0ef6f4e161e002b6893eeb4fafc3ca9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -269,7 +233,7 @@
"crane": "crane", "crane": "crane",
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
@ -317,11 +281,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713067146, "lastModified": 1712459390,
"narHash": "sha256-9D20xjblGKEVRVCnM3qWhiizEa9i6OpK6xQJajwcwOQ=", "narHash": "sha256-e12bNDottaGoBgd0AdH/bQvk854xunlWAdZwr/oHO1c=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "93aed67288be60c9ef6133ba2f8de128f4ef265c", "rev": "4676d72d872459e1e3a248d049609f110c570e9a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -332,11 +296,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1713248628, "lastModified": 1712791164,
"narHash": "sha256-NLznXB5AOnniUtZsyy/aPWOk8ussTuePp2acb9U+ISA=", "narHash": "sha256-3sbWO1mbpWsLepZGbWaMovSO7ndZeFqDSdX0hZ9nVyw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5672bc9dbf9d88246ddab5ac454e82318d094bb8", "rev": "1042fd8b148a9105f3c0aca3a6177fd1d9360ba5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -450,25 +414,24 @@
"river": { "river": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1713357595, "lastModified": 1712665127,
"narHash": "sha256-LGqP2HBrMKGGTnqFDjmZRKXN88SQMgfLm2plVAzan8c=", "narHash": "sha256-uACc9Cb1tSw3I0fMlEMX74NfU+Tg3It74tb+nc51AZ4=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "6b86af4f85f66697a0ffc504c4fcc1db05bfbb80", "rev": "14e941bae16b1ca478c32198c131c4297157f888",
"revCount": 1246, "revCount": 1238,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://codeberg.org/river/river" "url": "https://github.com/riverwm/river"
}, },
"original": { "original": {
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://codeberg.org/river/river" "url": "https://github.com/riverwm/river"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"dns": "dns",
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",

View file

@ -18,12 +18,9 @@
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
home-manager = { home-manager = {
inputs.nixpkgs.follows = "nixpkgs"; inputs = {
}; nixpkgs.follows = "nixpkgs";
};
dns = {
url = "github:nix-community/dns.nix";
inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-colors.url = "github:Misterio77/nix-colors"; nix-colors.url = "github:Misterio77/nix-colors";
@ -47,7 +44,7 @@
}; };
river = { river = {
url = "https://codeberg.org/river/river"; url = "https://github.com/riverwm/river";
flake = false; flake = false;
type = "git"; type = "git";
submodules = true; submodules = true;
@ -59,7 +56,6 @@
{ self { self
, nixpkgs , nixpkgs
, home-manager , home-manager
, dns
, nix-index-database , nix-index-database
, agenix , agenix
, impermanence , impermanence

View file

@ -1,52 +1,53 @@
{ pkgs, lib, config, dns, ... }: { pkgs, config, ... }:
let let
secondary = "185.181.104.96"; secondary = "185.181.104.96";
zonefile = with dns.lib.combinators; pkgs.writeText "rfive.de.zone.txt" (dns.lib.toString "rfive.de" { zonefile = pkgs.writeText "rfive.de.zone.txt" ''
TTL = 3600; $TTL 3600
SOA = { $ORIGIN rfive.de.
nameServer = "ns.rfive.de.";
adminEmail = "hostmaster@rfive.de";
serial = 2024041709;
refresh = 10800;
retry = 3600;
expire = 604800;
minimum = 3600;
};
NS = [
"ns.inwx.de."
"ns2.inwx.de."
"ns3.inxw.eu."
];
A = [ "23.88.121.184" ];
AAAA = [ "2a01:4f8:c012:49de::1" ];
CAA = letsEncrypt "ca@rfive.de"; rfive.de. 86400 IN SOA ns.rfive.de. hostmaster.rfive.de. (
2024040800 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
3600 ) ; negatives caching, ehem. minimum
MX = [{ preference = 1; exchange = "mail.rfive.de."; }]; @ NS ns.inwx.de.
@ NS ns2.inwx.de.
@ NS ns3.inwx.eu.
TXT = [ @ A 23.88.121.184
(spf.soft [ "mx" ]) @ AAAA 2a01:4f8:c012:49de::1
];
subdomains = lib.attrsets.mergeAttrsList [ @ CAA 0 iodef "mailto:ca@rfive.de"
rec { @ CAA 0 issue "letsencrypt.org"
nuc = { @ CAA 0 issuewild ";"
A = [ "141.30.227.6" ];
};
falkenstein = {
A = [ "23.88.121.184" ];
AAAA = [ "2a01:4f8:c012:49de::1" ];
};
ns = falkenstein;
mail = falkenstein;
_dmarc.TXT = [ "v=DMARC1; p=none; adkim=s; fo=1; rua=mailto:dmarc@rfive.de; ruf=mailto:dmarc@rfive.de" ];
_domainkey.subdomains.rspamd.TXT = [ "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDoirUMubro4nlmY6a8JMwK9QB2agAXiJzexDU/7ba6KCggONfoSTfUHlrM/XeM1GG/9oKpngApxDPP97adJuxc8/EELyo4HjTyYD8GBFZhg0AN7V8IPaJ1o5k6dGDk8ZLh41ZCnlAVWkhVSKs5pYtzkrlJIfUSzyuoe8nuFsVe3QIDAQAB" ];
} ns A 23.88.121.184
(lib.attrsets.genAttrs [ "cache" "chat" "matrix" "seafile" "vault" ] (label: { CNAME = [ "nuc.rfive.de." ]; })) ns AAAA 2a01:4f8:c012:49de::1
(lib.attrsets.genAttrs [ "purge" "rspamd" "trucks" ] (label: { CNAME = [ "falkenstein.rfive.de." ]; }))
]; nuc A 141.30.227.6
}); falkenstein A 23.88.121.184
falkenstein AAAA 2a01:4f8:c012:49de::1
@ MX 1 mail.rfive.de.
mail A 23.88.121.184
mail AAAA 2a01:4f8:c012:49de::1
@ TXT "v=spf1 mx ~all"
rspamd._domainkey TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDoirUMubro4nlmY6a8JMwK9QB2agAXiJzexDU/7ba6KCggONfoSTfUHlrM/XeM1GG/9oKpngApxDPP97adJuxc8/EELyo4HjTyYD8GBFZhg0AN7V8IPaJ1o5k6dGDk8ZLh41ZCnlAVWkhVSKs5pYtzkrlJIfUSzyuoe8nuFsVe3QIDAQAB"
_dmarc TXT "v=DMARC1; p=none; adkim=s; fo=1; rua=mailto:dmarc@rfive.de; ruf=mailto:dmarc@rfive.de"
cache CNAME nuc.rfive.de.
chat CNAME nuc.rfive.de.
matrix CNAME nuc.rfive.de.
seafile CNAME nuc.rfive.de.
vault CNAME nuc.rfive.de.
purge CNAME falkenstein.rfive.de.
rspamd CNAME falkenstein.rfive.de.
trucks CNAME falkenstein.rfive.de.
'';
in in
{ {
services.bind = rec { services.bind = rec {

View file

@ -11,6 +11,7 @@
experimental-features = [ "nix-command" "flakes" "repl-flake" ]; experimental-features = [ "nix-command" "flakes" "repl-flake" ];
substituters = [ substituters = [
"https://cache.rfive.de" "https://cache.rfive.de"
# temp disabled until logging error is resolved
"https://cache.ifsr.de" "https://cache.ifsr.de"
]; ];
trusted-public-keys = [ trusted-public-keys = [

View file

@ -11,9 +11,7 @@
iperf iperf
]; ];
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
programs.fzf = { programs.fzf.enable = true;
keybindings = true;
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
shellAliases = { shellAliases = {

View file

@ -17,6 +17,7 @@
(zathura.override { plugins = [ zathuraPkgs.zathura_pdf_mupdf ]; }) (zathura.override { plugins = [ zathuraPkgs.zathura_pdf_mupdf ]; })
gimp gimp
ffmpeg ffmpeg
imv
# bluetooth # bluetooth
blueman blueman
@ -38,10 +39,12 @@
bitwarden-cli bitwarden-cli
# misc # misc
neofetch # obligatory
xournalpp xournalpp
libreoffice libreoffice
mosh mosh
typst typst
typst-preview
hut hut
# programming languages # programming languages
@ -70,6 +73,8 @@
]; ];
programs.obs-studio.enable = true;
programs.firefox.enable = true; programs.firefox.enable = true;
programs = { programs = {
thunderbird = { thunderbird = {
@ -93,7 +98,7 @@
enable = true; enable = true;
defaultApplications = defaultApplications =
let let
image-viewers = [ "google-chrome.desktop" "gimp.desktop" "swappy.desktop" "org.qutebrowser.qutebrowser.desktop" ]; image-viewers = [ "imv.desktop" "gimp.desktop" "swappy.desktop" "org.qutebrowser.qutebrowser.desktop" "google-chrome.desktop" ];
browsers = [ "google-chrome.desktop" "firefox.desktop" "org.qutebrowser.qutebrowser.desktop" ]; browsers = [ "google-chrome.desktop" "firefox.desktop" "org.qutebrowser.qutebrowser.desktop" ];
in in
{ {

View file

@ -16,7 +16,7 @@ in
VisualHostKey = yes VisualHostKey = yes
''; '';
matchBlocks = { matchBlocks = {
# Personal # personal use
"git@github.com" = { "git@github.com" = {
match = "Host github.com User git"; match = "Host github.com User git";
identityFile = git; identityFile = git;
@ -25,16 +25,6 @@ in
match = "Host git.sr.ht User git"; match = "Host git.sr.ht User git";
identityFile = git; identityFile = git;
}; };
"*.vpn.rfive.de" = {
user = "root";
};
# TU Dresden
"tud" = {
hostname = "login.zih.tu-dresden.de";
user = "rose159e";
};
# iFSR # iFSR
"fsr" = { "fsr" = {
hostname = "ifsr.de"; hostname = "ifsr.de";
@ -43,14 +33,27 @@ in
"quitte" = { "quitte" = {
hostname = "quitte.ifsr.de"; hostname = "quitte.ifsr.de";
user = "root"; user = "root";
extraOptions = {
RequestTTY = "yes";
RemoteCommand = "zsh -i";
};
};
"quitte-notty" = {
hostname = "quitte.ifsr.de";
user = "root";
}; };
"tomate" = { "tomate" = {
hostname = "tomate.ifsr.de"; hostname = "tomate.ifsr.de";
user = "root"; user = "root";
extraOptions = { extraOptions = {
ProxyJump = "tud"; RequestTTY = "yes";
RemoteCommand = "zsh -i";
}; };
}; };
"tomate-notty" = {
hostname = "tomate.ifsr.de";
user = "root";
};
"git@ifsr.de" = { "git@ifsr.de" = {
match = "Host ifsr.de User git"; match = "Host ifsr.de User git";
identityFile = git; identityFile = git;
@ -71,6 +74,9 @@ in
VerifyHostKeyDNS = "yes"; VerifyHostKeyDNS = "yes";
}; };
}; };
"*.vpn.rfive.de" = {
user = "root";
};
"git@git.agdsn.de" = { "git@git.agdsn.de" = {
match = "Host git.agdsn.de User git"; match = "Host git.agdsn.de User git";
identityFile = git; identityFile = git;