Felix Erklaerbaer Termin

This commit is contained in:
2023-06-30 09:02:00 +00:00
parent 92ed683b43
commit 2003e17fa4
16 changed files with 422 additions and 262 deletions
+44
View File
@@ -0,0 +1,44 @@
{ config, pkgs, lib, ... }:
{
# Packages
environment.systemPackages = with pkgs; [
bandwhich
bind # dig
borgbackup
cryptsetup
file
fzf
gettext
git
gitAndTools.delta
gnufdisk
gptfdisk
htop
jq
killall
lsof
mosh
multipath-tools # kpartx
mtr
nmap
nmon
ouch # de-/compress
pciutils
progress
pv
reptyr
rsync
screen
stress-ng
usbutils
tmux
vim
wget
whois
zip
unzip
];
time.timeZone = "Europe/Berlin";
services.timesyncd.enable = true;
}
+7
View File
@@ -0,0 +1,7 @@
[
./core.nix
./modules.nix
./network.nix
./nix.nix
./users.nix
]
+3
View File
@@ -0,0 +1,3 @@
# Generate via nix-generate
{ config, lib, pkgs, ... }:
{}
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
networking.networkmanager = {
enable = true;
unmanaged = [
"interface-name:br-*" # Ignore docker compose network bridges
"interface-name:docker?" # Ignore docker default bridge
"interface-name:veth*" # Ignore docker compose network devices
"interface-name:virbr?" # Ignore libvirt default bridge
];
};
}
+27
View File
@@ -0,0 +1,27 @@
{ config, lib, pkgs, inputs, ... }:
{
nix = {
daemonCPUSchedPolicy = "idle";
daemonIOSchedClass = "idle";
settings = {
auto-optimise-store = true;
};
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
registry = {
nixpkgs.flake = inputs.nixpkgs;
unstable.flake = inputs.nixpkgs-unstable;
};
};
nixpkgs.config.allowUnfree = true;
}
+27
View File
@@ -0,0 +1,27 @@
{ config, pkgs, lib, ... }:
{
users.users.finn = {
isNormalUser = true;
home = "/home/finn";
group = "finn";
extraGroups = [
"adbusers" # adb control
"audio" # sound control
"dialout" # serial-console
"docker" # usage of `docker` socket
"input" # mouse control
"libvirtd" # kvm control
"networkmanager" # wireless configuration
"podman" # usage of `podman` socket
"video" # screen control
"wheel" # `sudo` for the user.
];
# openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h finn@thinkman" ];
};
users.groups.finn = {
gid = 1000;
};
}