nix-configs/common.nix

121 lines
2.4 KiB
Nix
Raw Normal View History

2022-08-02 07:55:12 +00: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 10:14:32 +00:00
{ config, pkgs, lib, ... }:
2022-08-02 07:55:12 +00:00
2022-08-12 10:14:32 +00:00
with lib;
with builtins;
{
2022-08-02 07:55:12 +00:00
nix = {
2022-10-02 15:39:04 +00:00
package = pkgs.nixVersions.stable;
2022-08-02 07:55:12 +00:00
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
};
nixpkgs = {
config = {
allowUnfree = true;
2023-05-25 07:03:43 +00:00
permittedInsecurePackages = [
"nodejs-16.20.0"
];
};
};
2022-08-02 07:55:12 +00:00
environment = {
systemPackages = with pkgs; [
htmlq
2022-08-02 07:55:12 +00:00
wget git neofetch pciutils zip unzip gnutar iw btop nodejs jdk8 jdk11
2023-09-08 23:10:22 +00:00
jdk libsecret gh nix-prefetch-scripts fzf glab ripgrep
sl lolcat appimage-run git-crypt file whois p7zip file nmap cmatrix tree
2023-10-28 20:25:06 +00:00
socat smartmontools mprocs
2023-11-07 07:05:47 +00:00
dig aria2 usbutils numbat
];
2022-08-12 10:14:32 +00:00
};
2022-08-02 07:55:12 +00:00
networking = {
networkmanager = {
enable = true;
};
2022-09-28 16:55:03 +00:00
};
services = {
openssh = {
enable = true;
2023-04-25 12:52:33 +00:00
# settings.PasswordAuthentication = false;
# settings.KbdInteractiveAuthentication = false;
};
};
2023-09-25 17:24:42 +00:00
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;
};
};
2022-09-10 10:18:11 +00:00
time.timeZone = "Europe/Berlin";
2022-08-02 07:55:12 +00:00
home-manager.users.jade = { nixosConfig, pkgs, ... }: {
home.sessionVariables.TZ = nixosConfig.time.timeZone;
};
2022-08-02 07:55:12 +00:00
2023-09-25 17:24:42 +00:00
nixpkgs.config.packageOverrides = pkgs: {
sudo = pkgs.sudo.override { withInsults = true; };
};
security.sudo.extraConfig = "Defaults insults";
2023-05-14 10:07:54 +00:00
boot.kernel.sysctl."vm.max_map_count" = 2147483642;
2022-08-02 07:55:12 +00:00
hardware = {
opengl.enable = true;
uinput.enable = true;
bluetooth.enable = true;
keyboard.uhk.enable = true;
};
2022-08-02 07:55:12 +00:00
security.rtkit.enable = true;
2023-11-17 10:53:46 +00:00
users.users.jade = {
2022-08-02 07:55:12 +00:00
isNormalUser = true;
2023-10-28 20:25:06 +00:00
extraGroups = [ "wheel" "input" "uinput" "libvirtd" "adbusers" "dialout" "plugdev" "wireshark" ];
2023-05-14 10:07:54 +00:00
packages = [
pkgs.marksman
2022-08-02 07:55:12 +00:00
];
};
2022-09-26 17:33:48 +00:00
zramSwap = {
enable = true;
algorithm = "zstd";
};
2023-09-25 17:24:42 +00:00
users.defaultUserShell = pkgs.nushellFull;
2022-08-02 07:55:12 +00:00
}