mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-05 15:16:23 +01:00
122 lines
2.4 KiB
Nix
122 lines
2.4 KiB
Nix
# 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’).
|
||
|
||
{ config, pkgs, lib, ... }:
|
||
|
||
with lib;
|
||
with builtins;
|
||
{
|
||
nix = {
|
||
package = pkgs.nixVersions.stable;
|
||
extraOptions = ''
|
||
experimental-features = nix-command flakes
|
||
keep-outputs = true
|
||
keep-derivations = true
|
||
'';
|
||
};
|
||
|
||
nixpkgs = {
|
||
config = {
|
||
allowUnfree = true;
|
||
permittedInsecurePackages = [
|
||
"nodejs-16.20.0"
|
||
];
|
||
};
|
||
};
|
||
|
||
environment = {
|
||
systemPackages = with pkgs; [
|
||
htmlq
|
||
|
||
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
|
||
];
|
||
};
|
||
|
||
networking = {
|
||
networkmanager = {
|
||
enable = true;
|
||
};
|
||
};
|
||
|
||
services = {
|
||
openssh = {
|
||
enable = true;
|
||
# settings.PasswordAuthentication = false;
|
||
# settings.KbdInteractiveAuthentication = false;
|
||
};
|
||
};
|
||
|
||
console.colors = [
|
||
"282828"
|
||
"cc241d"
|
||
"98971a"
|
||
"d79921"
|
||
"458588"
|
||
"b16286"
|
||
"689d6a"
|
||
"a89984"
|
||
"928374"
|
||
"fb4934"
|
||
"b8bb26"
|
||
"fabd2f"
|
||
"83a598"
|
||
"d3869b"
|
||
"8ec07c"
|
||
"ebdbb2"
|
||
];
|
||
|
||
programs = {
|
||
dconf.enable = true;
|
||
|
||
mtr.enable = true;
|
||
gnupg.agent = {
|
||
enable = true;
|
||
enableSSHSupport = true;
|
||
};
|
||
};
|
||
|
||
time.timeZone = "Europe/Berlin";
|
||
|
||
home-manager.users.jade = { nixosConfig, pkgs, ... }: {
|
||
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
||
};
|
||
|
||
nixpkgs.config.packageOverrides = pkgs: {
|
||
sudo = pkgs.sudo.override { withInsults = true; };
|
||
};
|
||
security.sudo.extraConfig = "Defaults insults";
|
||
|
||
boot.kernel.sysctl."vm.max_map_count" = 2147483642;
|
||
|
||
hardware = {
|
||
opengl.enable = true;
|
||
uinput.enable = true;
|
||
bluetooth.enable = true;
|
||
keyboard.uhk.enable = true;
|
||
};
|
||
|
||
security.rtkit.enable = true;
|
||
|
||
|
||
users.users.jade = {
|
||
isNormalUser = true;
|
||
extraGroups = [ "wheel" "input" "uinput" "libvirtd" "adbusers" "dialout" "plugdev" "wireshark" ];
|
||
packages = [
|
||
pkgs.marksman
|
||
];
|
||
};
|
||
|
||
zramSwap = {
|
||
enable = true;
|
||
algorithm = "zstd";
|
||
};
|
||
|
||
users.defaultUserShell = pkgs.nushellFull;
|
||
}
|
||
|