switch to podman && add amdgpu kernel module

This commit is contained in:
gpskwlkr 2024-03-27 01:23:46 +04:00
parent f7e2c26626
commit 75e790d690
8 changed files with 26 additions and 18 deletions

View file

@ -8,6 +8,8 @@
> ⚠ WARNING! Make sure to change home paths for config files in [user](./user/config).
> ⚠ WARNING! This configuration uses Podman as opposed to Docker, if you want to use dokcer make according changes in [virtualisation](./system/modules/virtualisation.nix).
> ⚠ WARNING! There might be some non-critical bugs in configuration as I'm still working on it.
## Table Of Contents

View file

@ -43,6 +43,9 @@ bind = $mainMod CTRL, h, resizeactive, -10 0
bind = $mainMod CTRL, k, resizeactive, 0 -10
bind = $mainMod CTRL, j, resizeactive, 0 10
bind = $mainMod, b, exec, firefox
bind = $mainMod, c, exec, telegram-desktop
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

View file

@ -1 +1 @@
monitor=DP-2,2560x1440@164.835999,auto,auto
monitor=DP-2,2560x1440@164.835999, 0x0, 1

View file

@ -51,6 +51,7 @@
pkgs.winetricks
];
})
pkgs.yuzu-mainline
# Downloads
pkgs.qbittorrent

View file

@ -12,6 +12,7 @@
proton-pass
to-google-translate
view-image
ublock-origin
youtube-shorts-block
];
};

View file

@ -23,6 +23,7 @@
# };
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.initrd.kernelModules = [ "amdgpu" ];
boot.lanzaboote = {
enable = true;

View file

@ -5,6 +5,7 @@
dbus.enable = true;
picom.enable = true;
openssh.enable = true;
spice-vdagentd.enable = true;
xserver = {
enable = true;
@ -14,7 +15,7 @@
displayManager = {
sddm.enable = true;
};
videoDrivers = [ "amdgpu" ];
};
};
}

View file

@ -1,30 +1,29 @@
{ pkgs, ... }:
{
virtualisation.libvirtd = {
enable = true;
virtualisation = {
spiceUSBRedirection.enable = true;
qemu = {
libvirtd = {
enable = true;
qemu = {
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ];
};
};
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
virtualisation.spiceUSBRedirection.enable = true;
services.spice-vdagentd.enable = true;
virtualisation.docker = {
enable = true;
enableOnBoot = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
environment.systemPackages = with pkgs; [
docker-compose
podman-compose
qemu
spice
spice-gtk