summary refs log tree commit diff
path: root/hosts/laptop
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-06-25 23:23:20 +0300
committertzlil <tzlils@protonmail.com>2023-06-25 23:23:20 +0300
commit190574abc135a3cbdfe0c188a3f7490d374c2fba (patch)
tree8fc2a30cef2964f9342c6dfe6bc7db7c541225e6 /hosts/laptop
parent830d708f96cd7e589b6460e0e18e90966da41ff4 (diff)
a bunch of crap idk but website update
Diffstat (limited to 'hosts/laptop')
-rw-r--r--hosts/laptop/cfg.nix28
1 files changed, 20 insertions, 8 deletions
diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix
index b835355..10d1696 100644
--- a/hosts/laptop/cfg.nix
+++ b/hosts/laptop/cfg.nix
@@ -36,10 +36,10 @@
     boot = {
       initrd = {
         supportedFilesystems = ["btrfs"];
-        availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod"];
+        availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "usbhid" "snd_usb_audio"];
       };
       supportedFilesystems = ["ntfs"];
-      kernelModules = ["kvm-intel"];
+      kernelModules = ["kvm-intel" "snd-seq" "snd-rawmidi" "bridge"];
       kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
       # extraModulePackages = [ config.boot.kernelPackages.rtl8821ce ];
       loader = {
@@ -61,7 +61,7 @@
       device = "none";
       fsType = "tmpfs";
       # hyprland doesnt compile with noexec root
-      options = ["defaults" "size=2G" "mode=755"];
+      options = ["defaults" "size=8G" "mode=755"];
     };
 
     fileSystems."/boot" = {
@@ -101,6 +101,12 @@
         user = "tzlil";
         group = "users";
       }
+      {
+        directory = "/home/tzlil/.local/share/Steam";
+        user = "tzlil";
+        group = "users";
+      }
+      "/var/lib/docker"
     ];
 
     home-manager.users.tzlil = {
@@ -111,6 +117,8 @@
       };
     };
 
+    programs.steam.enable = true;
+
     programs.firejail.wrappedBinaries = {
       mullvad-browser = {
         executable = lib.getExe pkgs.mullvad-browser;
@@ -159,10 +167,14 @@
 
     # dont know if i like this
     nix.settings.trusted-public-keys = [
-  "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
-];
-nix.settings.substituters = [
-  "https://cache.iog.io"
-];
+      "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
+    ];
+    nix.settings.substituters = [
+      "https://cache.iog.io"
+    ];
+
+    virtualisation.docker.enable = true;
+    virtualisation.docker.storageDriver = "btrfs";
+    users.users.tzlil.extraGroups = [ "docker" ];
   };
 }