nixos-config/common/configuration.nix
2024-11-18 10:03:43 +01:00

86 lines
1.7 KiB
Nix

{ lib, pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.timeout = 0;
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.tmp.useTmpfs = true;
networking.networkmanager.enable = true;
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
console.font = "Lat2-Terminus16";
security.polkit.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
jack.enable = true;
};
services.ananicy = {
enable = true;
package = pkgs.ananicy-cpp;
rulesProvider = pkgs.ananicy-rules-cachyos;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
pv
git
vim
curl
ncdu
htop
tmux
file
tree
ldns
nmap
];
services.udisks2.enable = true;
services.libinput.enable = true;
services.flatpak.enable = true;
programs.zsh.enable = true;
programs.dconf.enable = true;
programs.adb.enable = true;
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
systemd.services.libvirtd.wantedBy = lib.mkForce [ ];
systemd.services.libvirt-guests.wantedBy = lib.mkForce [ ];
programs.niri.enable = true;
programs.niri.package = pkgs.niri;
users.users.ahurac = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "libvirtd" "adbusers" ];
shell = pkgs.zsh;
};
system.stateVersion = "24.05";
}