nix-configs/common.nix
2023-02-13 08:21:22 +01:00

101 lines
1.9 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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;
};
};
environment = {
systemPackages = with pkgs; [
wget git neofetch pciutils zip unzip gnutar iw btop nodejs jdk8 jdk11
jdk libsecret gh nix-prefetch-scripts direnv nix-direnv fzf glab openal
sl lolcat appimage-run git-crypt file whois p7zip file nmap cmatrix tree
socat
];
pathsToLink = [
"/share/nix-direnv"
];
};
networking = {
networkmanager = {
enable = true;
};
};
services = {
usbmuxd.enable = true;
gvfs.enable = true;
openssh.enable = true;
};
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";
hardware.opengl.enable = true;
hardware.uinput.enable = true;
security.rtkit.enable = true;
users.users.jade = {
isNormalUser = true;
extraGroups = [ "wheel" "input" "uinput" "libvirtd" "adbusers" ];
packages = with pkgs; [
];
};
zramSwap = {
enable = true;
algorithm = "zstd";
};
users.defaultUserShell = pkgs.zsh;
}