stuff
This commit is contained in:
parent
badcf3aa40
commit
42a0bf27e0
24 changed files with 2870 additions and 392 deletions
|
|
@ -3,10 +3,11 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
hardware.alsa.enablePersistence = true;
|
||||
# hardware.alsa.enablePersistence = true;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
thunar.enable = lib.mkEnableOption "Enables thunar and its plugins";
|
||||
};
|
||||
config = lib.mkIf config.thunar.enable {
|
||||
programs.thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||
services.tumbler.enable = true; # Thumbnail support for images
|
||||
};
|
||||
}
|
||||
|
|
@ -20,7 +20,8 @@
|
|||
"audio"
|
||||
"wireshark"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
# shell = pkgs.zsh;
|
||||
shell = pkgs.nushell;
|
||||
uid = 1000;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,14 +4,24 @@
|
|||
user,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
libvirt.enable = lib.mkEnableOption "Enables Libvirt";
|
||||
};
|
||||
config = lib.mkIf config.libvirt.enable {
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
environment.systemPackages = with pkgs; [virt-manager];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
# vagrant
|
||||
];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
users.extraGroups.libvirtd.members = ["${user}"];
|
||||
users.extraGroups.libvirtd.members = [ "${user}" ];
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "glen" ];
|
||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||
virtualisation.virtualbox.guest.enable = true;
|
||||
virtualisation.virtualbox.guest.dragAndDrop = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
user,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
libvirt.enable = lib.mkEnableOption "Enables Libvirt";
|
||||
};
|
||||
config = lib.mkIf config.libvirt.enable {
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
# vagrant
|
||||
];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
users.extraGroups.libvirtd.members = [ "${user}" ];
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];
|
||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||
virtualisation.virtualbox.guest.enable = true;
|
||||
virtualisation.virtualbox.guest.dragAndDrop = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue