nixos-config/common/configuration.nix

73 lines
1.4 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-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
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
git
vim
curl
ncdu
htop
tmux
file
tree
lemurs
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.hyprland.enable = true;
programs.zsh.enable = true;
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-09-30 13:54:20 +02:00
users.users.ahurac = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.zsh;
};
system.stateVersion = "24.05";
}