2022-12-18 17:01:34 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2022-12-29 20:48:40 +01:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
2022-12-18 17:07:40 +01:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
2022-12-20 13:16:42 +01:00
|
|
|
./modules/autorandr
|
2022-12-29 15:05:26 +01:00
|
|
|
./modules/networks
|
2022-12-31 12:28:53 +01:00
|
|
|
./modules/lightdm
|
2022-12-19 19:30:32 +01:00
|
|
|
../../shared/vim.nix
|
|
|
|
../../shared/input.nix
|
2022-12-27 17:46:57 +01:00
|
|
|
../../shared/sops.nix
|
2022-12-29 20:48:40 +01:00
|
|
|
../../shared/gpg.nix
|
2023-01-02 23:39:36 +01:00
|
|
|
../../shared/zsh-fix.nix
|
2022-12-18 17:07:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
useXkbConfig = true; # use xkbOptions in tty.
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+awesome";
|
|
|
|
};
|
2022-12-20 14:42:40 +01:00
|
|
|
windowManager.awesome = {
|
|
|
|
enable = true;
|
|
|
|
luaModules = with pkgs.luaPackages; [
|
|
|
|
luarocks
|
|
|
|
vicious
|
|
|
|
];
|
|
|
|
};
|
2022-12-18 17:07:40 +01:00
|
|
|
libinput.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
2022-12-31 12:28:53 +01:00
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2022-12-27 18:21:33 +01:00
|
|
|
# control display backlight
|
2022-12-19 19:30:32 +01:00
|
|
|
programs.light.enable = true;
|
|
|
|
|
|
|
|
services = {
|
2022-12-27 18:21:33 +01:00
|
|
|
blueman.enable = true; # bluetooth
|
|
|
|
devmon.enable = true; # automount stuff
|
2022-12-19 19:30:32 +01:00
|
|
|
printing.enable = true;
|
|
|
|
fprintd.enable = true; # log in using fingerprint
|
2022-12-27 18:21:33 +01:00
|
|
|
openssh.enable = true; # enabled ssh to have the host keys
|
2022-12-19 19:30:32 +01:00
|
|
|
};
|
2022-12-18 17:07:40 +01:00
|
|
|
|
2022-12-27 18:21:33 +01:00
|
|
|
programs.steam.enable = true; # putting steam in here cause in home manager it doesn't work
|
2022-12-18 17:07:40 +01:00
|
|
|
|
|
|
|
virtualisation.libvirtd.enable = true;
|
2022-12-27 13:23:06 +01:00
|
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
2023-01-03 18:18:09 +01:00
|
|
|
# fix to enable secure boot in vms
|
|
|
|
environment.etc = {
|
|
|
|
"ovmf/edk2-x86_64-secure-code.fd" = {
|
|
|
|
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-x86_64-secure-code.fd";
|
|
|
|
};
|
|
|
|
|
|
|
|
"ovmf/edk2-i386-vars.fd" = {
|
|
|
|
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-i386-vars.fd";
|
|
|
|
mode = "0644";
|
|
|
|
user = "libvirtd";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-12-27 13:23:06 +01:00
|
|
|
|
2022-12-29 20:48:40 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# essentials
|
|
|
|
wget
|
|
|
|
gcc
|
|
|
|
git
|
|
|
|
htop
|
|
|
|
dig
|
|
|
|
traceroute
|
|
|
|
killall
|
|
|
|
];
|
|
|
|
|
2022-12-27 18:21:33 +01:00
|
|
|
system.stateVersion = "22.11";
|
2022-12-18 17:01:34 +01:00
|
|
|
}
|