From fad9b00b93ac6f995f9af15325c6c366ed9a2067 Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Wed, 9 Mar 2022 19:15:56 +0000 Subject: [PATCH] tmpOnTmpfs only linux --- profiles/base/boot.nix | 7 ++++++- profiles/base/default.nix | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 profiles/base/default.nix diff --git a/profiles/base/boot.nix b/profiles/base/boot.nix index 3e07500..53dcaa4 100644 --- a/profiles/base/boot.nix +++ b/profiles/base/boot.nix @@ -1 +1,6 @@ -_: { boot.tmpOnTmpfs = true; } +{ pkgs, lib, ... }: { + boot = lib.mkIf pkgs.stdenv.isLinux { + # NOINLINE + tmpOnTmpfs = true; + }; +} diff --git a/profiles/base/default.nix b/profiles/base/default.nix new file mode 100644 index 0000000..6074998 --- /dev/null +++ b/profiles/base/default.nix @@ -0,0 +1,14 @@ +{tree, ...}: { + imports = [ + ./access.nix + ./boot.nix + ./hardware.nix + ./home.nix + ./locale.nix + ./nix.nix + ./programs.nix + ./services.nix + ./terminals.nix + ./zsh.nix + ]; +} \ No newline at end of file