129 lines
2.2 KiB
Nix
129 lines
2.2 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
bonLib,
|
|
...
|
|
}: {
|
|
system.stateVersion = "23.11";
|
|
|
|
imports = [
|
|
bonLib.preconfiguredModules.nixos.common
|
|
./hardware.nix
|
|
./users.nix
|
|
];
|
|
|
|
# Nix settings
|
|
nix.settings = {
|
|
trusted-users = ["l-nafaryus"];
|
|
allowed-users = ["l-nafaryus"];
|
|
};
|
|
|
|
# Nix packages
|
|
nixpkgs = {
|
|
hostPlatform = lib.mkDefault "x86_64-linux";
|
|
config.allowUnfree = true;
|
|
config.cudaSupport = false;
|
|
|
|
overlays = [
|
|
(final: prev: {
|
|
blender = prev.blender.override {cudaSupport = true;};
|
|
})
|
|
];
|
|
};
|
|
|
|
# Services
|
|
services.xserver = {
|
|
enable = true;
|
|
|
|
xkb = {
|
|
layout = "us";
|
|
variant = "";
|
|
};
|
|
|
|
videoDrivers = ["nvidia"];
|
|
|
|
wacom.enable = true;
|
|
};
|
|
|
|
services.desktopManager.plasma6.enable = true;
|
|
|
|
services.displayManager.sddm = {
|
|
enable = true;
|
|
wayland.enable = true;
|
|
};
|
|
|
|
services.dbus = {
|
|
enable = true;
|
|
packages = with pkgs; [networkmanager];
|
|
};
|
|
|
|
services.printing = {
|
|
enable = true;
|
|
drivers = [pkgs.hplip];
|
|
};
|
|
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
startWhenNeeded = true;
|
|
settings.PasswordAuthentication = false;
|
|
settings.KbdInteractiveAuthentication = false;
|
|
};
|
|
|
|
services.udev = {
|
|
extraRules = ''
|
|
KERNEL=="rtc0", GROUP="audio"
|
|
KERNEL=="hpet", GROUP="audio"
|
|
'';
|
|
};
|
|
|
|
services.cockpit.enable = true;
|
|
|
|
#services.blueman.enable = true;
|
|
|
|
services.btrfs.autoScrub = {
|
|
enable = true;
|
|
interval = "monthly";
|
|
fileSystems = ["/"];
|
|
};
|
|
|
|
programs.ssh.extraConfig = ''
|
|
Host astora
|
|
HostName 192.168.156.101
|
|
Port 22
|
|
User l-nafaryus
|
|
|
|
Host catarina
|
|
HostName 192.168.156.102
|
|
Port 22
|
|
User l-nafaryus
|
|
'';
|
|
|
|
virtualisation = {
|
|
containers.enable = true;
|
|
podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
};
|
|
libvirtd = {
|
|
enable = true;
|
|
qemu.vhostUserPackages = with pkgs; [virtiofsd];
|
|
};
|
|
};
|
|
}
|