2022-12-18 17:01:34 +01:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2022-12-18 17:07:40 +01:00
|
|
|
|
imports =
|
|
|
|
|
[
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
2022-12-19 19:30:32 +01:00
|
|
|
|
../../shared/vim.nix
|
|
|
|
|
../../shared/input.nix
|
2022-12-18 17:07:40 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
networking.hostName = "thinkpad"; # Define your hostname.
|
|
|
|
|
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
|
|
|
networking.firewall = {
|
2022-12-19 19:30:32 +01:00
|
|
|
|
allowedUDPPorts = [ 51820 ]; # used for wireguard
|
2022-12-18 17:07:40 +01:00
|
|
|
|
checkReversePath = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
console = {
|
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
|
useXkbConfig = true; # use xkbOptions in tty.
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
|
services.xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
displayManager = {
|
|
|
|
|
lightdm.enable = true;
|
|
|
|
|
defaultSession = "none+awesome";
|
|
|
|
|
};
|
|
|
|
|
windowManager.awesome = {
|
|
|
|
|
enable = true;
|
|
|
|
|
luaModules = with pkgs.luaPackages; [
|
|
|
|
|
luarocks
|
|
|
|
|
vicious
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
libinput.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
|
sound.enable = true;
|
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
|
|
# enable polkit
|
|
|
|
|
security.polkit.enable = true;
|
|
|
|
|
|
2022-12-19 19:30:32 +01:00
|
|
|
|
# Baseline of installed packages
|
2022-12-18 17:07:40 +01:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
# essentials
|
|
|
|
|
wget
|
|
|
|
|
git
|
|
|
|
|
gcc
|
|
|
|
|
htop
|
|
|
|
|
tmux
|
|
|
|
|
dig
|
|
|
|
|
traceroute
|
|
|
|
|
killall
|
|
|
|
|
# dev
|
|
|
|
|
jdk
|
|
|
|
|
maven
|
|
|
|
|
];
|
|
|
|
|
|
2022-12-19 19:30:32 +01:00
|
|
|
|
programs.light.enable = true;
|
|
|
|
|
|
2022-12-18 17:07:40 +01:00
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# List services that you want to enable:
|
2022-12-19 19:30:32 +01:00
|
|
|
|
services = {
|
|
|
|
|
blueman.enable = true;
|
|
|
|
|
devmon.enable = true;
|
|
|
|
|
pcscd.enable = true; # yubikey and smartcard stuff
|
|
|
|
|
printing.enable = true;
|
|
|
|
|
fprintd.enable = true; # log in using fingerprint
|
|
|
|
|
picom.enable = true;
|
|
|
|
|
};
|
2022-12-18 17:07:40 +01:00
|
|
|
|
|
|
|
|
|
# Automatically configure displays
|
|
|
|
|
services.autorandr.enable = true;
|
|
|
|
|
|
2022-12-19 16:51:39 +01:00
|
|
|
|
programs.steam.enable = true; # putting steam in here since home manager weirdly complains about it
|
|
|
|
|
programs.kdeconnect.enable = true; # same as above
|
2022-12-18 17:07:40 +01:00
|
|
|
|
|
|
|
|
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
|
|
|
|
|
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
2022-12-18 17:01:34 +01:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|