nixos-config/common/configuration.nix

87 lines
1.7 KiB
Nix
Raw Normal View History

2024-10-09 14:06:35 +02:00
{ lib, pkgs, ... }:
2024-09-30 13:54:20 +02:00
{
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";
2024-10-01 19:54:30 +02:00
console.font = "Lat2-Terminus16";
2024-09-30 13:54:20 +02:00
2024-10-11 19:57:49 +02:00
security.polkit.enable = true;
2024-11-06 17:48:40 +01:00
security.rtkit.enable = true;
2024-09-30 13:54:20 +02:00
services.pipewire = {
enable = true;
pulse.enable = true;
2024-10-06 22:29:13 +02:00
jack.enable = true;
2024-09-30 13:54:20 +02:00
};
2024-11-04 11:31:44 +01:00
services.ananicy = {
enable = true;
package = pkgs.ananicy-cpp;
rulesProvider = pkgs.ananicy-rules-cachyos;
};
2024-09-30 13:54:20 +02:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
2024-11-04 11:15:38 +01:00
pv
2024-09-30 13:54:20 +02:00
git
vim
curl
ncdu
htop
tmux
file
tree
2024-10-21 10:56:03 +02:00
ldns
2024-11-12 08:34:17 +01:00
nmap
2024-09-30 13:54:20 +02:00
];
services.udisks2.enable = true;
2024-09-30 16:43:05 +02:00
services.libinput.enable = true;
services.flatpak.enable = true;
2024-09-30 13:54:20 +02:00
programs.zsh.enable = true;
programs.dconf.enable = true;
2024-11-12 11:35:02 +01:00
programs.adb.enable = true;
2024-09-30 13:54:20 +02:00
2024-10-07 13:30:45 +02:00
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 [ ];
2024-10-15 10:47:12 +02:00
systemd.services.libvirt-guests.wantedBy = lib.mkForce [ ];
2024-10-07 13:30:45 +02:00
2024-10-21 11:39:05 +02:00
programs.niri.enable = true;
programs.niri.package = pkgs.niri;
2024-09-30 13:54:20 +02:00
users.users.ahurac = {
isNormalUser = true;
2024-11-12 11:35:02 +01:00
extraGroups = [ "wheel" "networkmanager" "libvirtd" "adbusers" ];
2024-09-30 13:54:20 +02:00
shell = pkgs.zsh;
};
system.stateVersion = "24.05";
}