Skip to content

Commit

Permalink
Add media-pc, and update
Browse files Browse the repository at this point in the history
  • Loading branch information
grmrgecko committed Aug 12, 2024
1 parent 0323133 commit 0addff6
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 35 deletions.
42 changes: 21 additions & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions hosts/tama/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
../../modules/nixos/zfs.nix
];

# Fix AMD SATA bug?
boot.kernelParams = [
"iommu=soft"
];

# Enable NFS export for kvm storage.
services.nfs.server.enable = true;
services.nfs.server.exports = ''
Expand Down
4 changes: 0 additions & 4 deletions modules/home/flatpaks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
"flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
};
services.flatpak.packages = [
"flathub:app/org.kde.kdenlive/x86_64/stable"
"flathub:app/org.libreoffice.LibreOffice/x86_64/stable"
"flathub:app/org.onlyoffice.desktopeditors/x86_64/stable"
"flathub:app/md.obsidian.Obsidian/x86_64/stable"
"flathub:app/org.mozilla.Thunderbird/x86_64/stable"
"flathub:app/com.calibre_ebook.calibre/x86_64/stable"
"flathub:app/org.gimp.GIMP/x86_64/stable"
"flathub:app/org.kde.krita/x86_64/stable"
"flathub:app/org.inkscape.Inkscape/x86_64/stable"
"flathub:app/org.blender.Blender/x86_64/stable"
];
}
6 changes: 6 additions & 0 deletions modules/home/profiles/gaming-pc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
imports = [
./desktop.nix
];
services.flatpak.packages = [
"flathub:app/org.kde.kdenlive/x86_64/stable"
"flathub:app/org.mozilla.Thunderbird/x86_64/stable"
"flathub:app/com.calibre_ebook.calibre/x86_64/stable"
"flathub:app/org.blender.Blender/x86_64/stable"
];
}
7 changes: 7 additions & 0 deletions modules/home/profiles/media-pc.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{pkgs, settings, ...}:

{
imports = [
./desktop.nix
];
}
4 changes: 1 addition & 3 deletions modules/nixos/video-drivers/amdgpu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

{
# Display drivers.
hardware.opengl = {
hardware.graphics = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
Expand Down
4 changes: 1 addition & 3 deletions modules/nixos/video-drivers/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

{
# Display drivers.
hardware.opengl = {
hardware.graphics = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = [ "nvidia" ];

Expand Down
4 changes: 1 addition & 3 deletions modules/nixos/video-drivers/qxl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

{
# Display drivers.
hardware.opengl = {
hardware.graphics = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = [ "qxl" ];
# services.qemuGuest.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
boot.supportedFilesystems = [ "zfs" ];

# Set kernel to latest compatible version with ZFS.
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
#boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;

environment.systemPackages = with pkgs; [
zfs
Expand Down
8 changes: 8 additions & 0 deletions profiles/media-pc.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ config, lib, pkgs, settings, ... }:

{
# Import modules.
imports = [
./desktop.nix
];
}

0 comments on commit 0addff6

Please sign in to comment.