83 lines
1.7 KiB
Nix
83 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;
|
|
|
|
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
|
|
];
|
|
|
|
services.udisks2.enable = true;
|
|
services.libinput.enable = true;
|
|
services.flatpak.enable = true;
|
|
|
|
programs.zsh.enable = true;
|
|
programs.dconf.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" ];
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|