2022-08-02 09:55:12 +02:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
2022-08-12 12:14:32 +02:00
|
|
|
|
{
|
2023-11-26 21:26:49 +01:00
|
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
with lib;
|
|
|
|
|
with builtins; {
|
2022-08-02 09:55:12 +02:00
|
|
|
|
nix = {
|
2022-10-02 17:39:04 +02:00
|
|
|
|
package = pkgs.nixVersions.stable;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
extraOptions = ''
|
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
|
keep-outputs = true
|
|
|
|
|
keep-derivations = true
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
nixpkgs = {
|
|
|
|
|
config = {
|
|
|
|
|
allowUnfree = true;
|
2023-05-25 09:03:43 +02:00
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
|
"nodejs-16.20.0"
|
|
|
|
|
];
|
2023-02-03 17:43:17 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
environment = {
|
|
|
|
|
systemPackages = with pkgs; [
|
2024-02-13 21:22:25 +01:00
|
|
|
|
# pynitrokey
|
|
|
|
|
# nitrokey-app2
|
2024-02-02 11:28:26 +01:00
|
|
|
|
|
|
|
|
|
veracrypt
|
|
|
|
|
|
2023-11-14 12:22:19 +01:00
|
|
|
|
htmlq
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
|
wget
|
|
|
|
|
git
|
|
|
|
|
neofetch
|
|
|
|
|
pciutils
|
|
|
|
|
zip
|
|
|
|
|
unzip
|
|
|
|
|
gnutar
|
|
|
|
|
iw
|
|
|
|
|
btop
|
|
|
|
|
nodejs
|
|
|
|
|
jdk8
|
|
|
|
|
jdk11
|
|
|
|
|
jdk
|
|
|
|
|
libsecret
|
|
|
|
|
gh
|
|
|
|
|
nix-prefetch-scripts
|
|
|
|
|
fzf
|
|
|
|
|
glab
|
|
|
|
|
ripgrep
|
|
|
|
|
sl
|
|
|
|
|
lolcat
|
|
|
|
|
appimage-run
|
|
|
|
|
git-crypt
|
|
|
|
|
file
|
|
|
|
|
whois
|
|
|
|
|
p7zip
|
|
|
|
|
file
|
|
|
|
|
nmap
|
|
|
|
|
cmatrix
|
|
|
|
|
tree
|
|
|
|
|
socat
|
|
|
|
|
smartmontools
|
|
|
|
|
mprocs
|
|
|
|
|
dig
|
|
|
|
|
aria2
|
|
|
|
|
usbutils
|
|
|
|
|
numbat
|
2023-02-03 17:43:17 +01:00
|
|
|
|
];
|
2022-08-12 12:14:32 +02:00
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
networking = {
|
|
|
|
|
networkmanager = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
2022-09-28 18:55:03 +02:00
|
|
|
|
};
|
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
services = {
|
2023-03-18 17:54:57 +01:00
|
|
|
|
openssh = {
|
|
|
|
|
enable = true;
|
2023-04-25 14:52:33 +02:00
|
|
|
|
# settings.PasswordAuthentication = false;
|
|
|
|
|
# settings.KbdInteractiveAuthentication = false;
|
2023-03-18 17:54:57 +01:00
|
|
|
|
};
|
2023-02-03 17:43:17 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-09-25 19:24:42 +02:00
|
|
|
|
console.colors = [
|
|
|
|
|
"282828"
|
|
|
|
|
"cc241d"
|
|
|
|
|
"98971a"
|
|
|
|
|
"d79921"
|
|
|
|
|
"458588"
|
|
|
|
|
"b16286"
|
|
|
|
|
"689d6a"
|
|
|
|
|
"a89984"
|
|
|
|
|
"928374"
|
|
|
|
|
"fb4934"
|
|
|
|
|
"b8bb26"
|
|
|
|
|
"fabd2f"
|
|
|
|
|
"83a598"
|
|
|
|
|
"d3869b"
|
|
|
|
|
"8ec07c"
|
|
|
|
|
"ebdbb2"
|
|
|
|
|
];
|
|
|
|
|
|
2024-02-02 11:28:26 +01:00
|
|
|
|
# nitrokey
|
|
|
|
|
services.udev.packages = [pkgs.nitrokey-udev-rules];
|
|
|
|
|
services.pcscd.enable = true;
|
2023-02-03 17:43:17 +01:00
|
|
|
|
|
2024-02-02 11:28:26 +01:00
|
|
|
|
programs = {
|
|
|
|
|
ssh.startAgent = false;
|
2023-02-03 17:43:17 +01:00
|
|
|
|
gnupg.agent = {
|
2022-08-12 18:31:05 +02:00
|
|
|
|
enable = true;
|
2023-02-03 17:43:17 +01:00
|
|
|
|
enableSSHSupport = true;
|
2022-08-12 18:31:05 +02:00
|
|
|
|
};
|
2024-02-02 11:28:26 +01:00
|
|
|
|
|
|
|
|
|
dconf.enable = true;
|
|
|
|
|
mtr.enable = true;
|
2023-02-03 17:43:17 +01:00
|
|
|
|
};
|
2022-09-10 12:18:11 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
time.timeZone = "Europe/Berlin";
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
|
home-manager.users.jade = {
|
|
|
|
|
nixosConfig,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
2023-02-03 17:43:17 +01:00
|
|
|
|
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-09-25 19:24:42 +02:00
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
2023-11-26 21:26:49 +01:00
|
|
|
|
sudo = pkgs.sudo.override {withInsults = true;};
|
2023-09-25 19:24:42 +02:00
|
|
|
|
};
|
|
|
|
|
security.sudo.extraConfig = "Defaults insults";
|
2023-02-03 17:43:17 +01:00
|
|
|
|
|
2023-05-14 12:07:54 +02:00
|
|
|
|
boot.kernel.sysctl."vm.max_map_count" = 2147483642;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-11-14 12:22:19 +01:00
|
|
|
|
hardware = {
|
|
|
|
|
opengl.enable = true;
|
2023-11-26 21:26:49 +01:00
|
|
|
|
uinput.enable = true;
|
2023-11-14 12:22:19 +01:00
|
|
|
|
bluetooth.enable = true;
|
2024-02-13 21:22:25 +01:00
|
|
|
|
# keyboard.uhk.enable = true;
|
2023-11-14 12:22:19 +01:00
|
|
|
|
};
|
2023-01-29 13:39:48 +01:00
|
|
|
|
|
2024-02-27 18:17:36 +01:00
|
|
|
|
services.avahi = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
2023-11-17 11:53:46 +01:00
|
|
|
|
users.users.jade = {
|
2022-08-02 09:55:12 +02:00
|
|
|
|
isNormalUser = true;
|
2023-11-26 21:26:49 +01:00
|
|
|
|
extraGroups = ["wheel" "input" "uinput" "libvirtd" "adbusers" "dialout" "plugdev" "wireshark"];
|
2024-02-06 19:33:09 +01:00
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOaE8TFsIazpn4OnHvHcRpOFr9FfvMaWOiEjmHsmnAoE cardno:000F_70CD7D05"
|
|
|
|
|
];
|
2022-08-02 09:55:12 +02:00
|
|
|
|
};
|
|
|
|
|
|
2022-09-26 19:33:48 +02:00
|
|
|
|
zramSwap = {
|
|
|
|
|
enable = true;
|
|
|
|
|
algorithm = "zstd";
|
|
|
|
|
};
|
|
|
|
|
|
2023-09-25 19:24:42 +02:00
|
|
|
|
users.defaultUserShell = pkgs.nushellFull;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
}
|