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
|
|
|
|
{ config, pkgs, lib, ... }:
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2022-08-12 12:14:32 +02:00
|
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
environment = {
|
|
|
|
|
systemPackages = with pkgs; [
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
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"
|
|
|
|
|
];
|
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 = {
|
2022-08-12 12:14:32 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
usbmuxd.enable = true;
|
|
|
|
|
gvfs.enable = true;
|
|
|
|
|
openssh.enable = true;
|
2022-12-31 23:50:30 +01:00
|
|
|
|
|
2022-08-12 18:31:05 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
|
|
|
|
|
|
dconf.enable = true;
|
|
|
|
|
|
|
|
|
|
mtr.enable = true;
|
|
|
|
|
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
|
|
|
|
};
|
2023-02-03 15:37:44 +01:00
|
|
|
|
|
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-02-03 17:43:17 +01:00
|
|
|
|
home-manager.users.jade = { nixosConfig, pkgs, ... }: {
|
|
|
|
|
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
|
sudo = pkgs.sudo.override { withInsults = true; };
|
2022-10-07 00:49:16 +02:00
|
|
|
|
};
|
2023-02-03 17:43:17 +01:00
|
|
|
|
security.sudo.extraConfig = "Defaults insults";
|
|
|
|
|
|
2022-10-07 00:49:16 +02:00
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
hardware.opengl.enable = true;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
hardware.uinput.enable = true;
|
2023-01-29 13:39:48 +01:00
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
2023-01-06 14:22:42 +01:00
|
|
|
|
|
|
|
|
|
users.users.jade = {
|
2022-08-02 09:55:12 +02:00
|
|
|
|
isNormalUser = true;
|
2023-02-03 15:36:50 +01:00
|
|
|
|
extraGroups = [ "wheel" "input" "uinput" "libvirtd" "adbusers" ];
|
2022-08-02 09:55:12 +02:00
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-26 19:33:48 +02:00
|
|
|
|
zramSwap = {
|
|
|
|
|
enable = true;
|
|
|
|
|
algorithm = "zstd";
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-03 17:43:17 +01:00
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
}
|
|
|
|
|
|