diff --git a/flake.nix b/flake.nix index 3275dac..72be374 100644 --- a/flake.nix +++ b/flake.nix @@ -67,6 +67,7 @@ ./modules/paperless.nix ./modules/kavita.nix ./modules/netdata.nix + ./modules/tmpfs.nix ### Hardware ### ./modules/hardware/ssd.nix home-manager.nixosModules.home-manager @@ -106,6 +107,7 @@ ./modules/noise-supression.nix ({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; }) ./modules/wooting.nix + ./modules/tmpfs.nix ./modules/support/ntfs.nix ./systems/pc/configuration.nix agenix.nixosModules.default @@ -131,6 +133,7 @@ #./modules/wake-on-lan.nix ./modules/thunderbolt.nix ./modules/rdp.nix + ./modules/tmpfs.nix nixos-hardware.nixosModules.dell-xps-15-7590-nvidia agenix.nixosModules.default home-manager.nixosModules.home-manager diff --git a/laptop/hardware-configuration.nix b/laptop/hardware-configuration.nix index 041c0ce..38b29f3 100644 --- a/laptop/hardware-configuration.nix +++ b/laptop/hardware-configuration.nix @@ -16,6 +16,10 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/b90bb1c8-922d-45b4-b911-74c37dca2ed3"; fsType = "ext4"; + options = [ + "defaults" + "noatime" + ]; }; fileSystems."/boot" = diff --git a/modules/tmpfs.nix b/modules/tmpfs.nix new file mode 100644 index 0000000..7177b8a --- /dev/null +++ b/modules/tmpfs.nix @@ -0,0 +1,3 @@ +{ + boot.tmp.useTmpfs = true; +} diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 4c49eea..ee4aa54 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -50,6 +50,9 @@ networking.networkmanager.enable = true; boot.initrd.systemd.network.wait-online.enable = false; systemd.network.wait-online.enable = false; + + #disable firewall when doing ipv6 vm stuff + #networking.firewall.enable = lib.mkForce false; # Set your time zone. time.timeZone = "Europe/Vienna"; diff --git a/systems/pc/hardware-configuration.nix b/systems/pc/hardware-configuration.nix index b572ac4..e891a66 100644 --- a/systems/pc/hardware-configuration.nix +++ b/systems/pc/hardware-configuration.nix @@ -16,6 +16,10 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/dd65bdf8-c003-439c-a1aa-d050cb20959d"; fsType = "ext4"; + options = [ + "defaults" + "noatime" + ]; }; fileSystems."/boot" = diff --git a/systems/server/hardware-configuration.nix b/systems/server/hardware-configuration.nix index 2b17482..ca47570 100644 --- a/systems/server/hardware-configuration.nix +++ b/systems/server/hardware-configuration.nix @@ -16,6 +16,10 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/1af836fb-ffef-4362-84af-bcb24d4db068"; fsType = "ext4"; + options = [ + "defaults" + "noatime" + ]; }; fileSystems."/boot" = @@ -42,7 +46,7 @@ fileSystems."/mnt/250ssd" = { device = "/dev/disk/by-uuid/80163cf9-2030-4757-ada2-03db96184961"; fsType = "ext4"; - options = ["defaults" "nofail"]; + options = ["defaults" "nofail" "noatime"]; }; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking