From 6fd81e3a1681eb5f648f8f5a0910cf3df2234015 Mon Sep 17 00:00:00 2001 From: jasmine Date: Fri, 26 Jul 2024 09:13:04 +0800 Subject: [PATCH] Refactor programs --- nixos/fuchsia/configuration.nix | 7 +------ nixos/fuchsia/programs/default.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 nixos/fuchsia/programs/default.nix diff --git a/nixos/fuchsia/configuration.nix b/nixos/fuchsia/configuration.nix index 0711faf..d062703 100644 --- a/nixos/fuchsia/configuration.nix +++ b/nixos/fuchsia/configuration.nix @@ -10,6 +10,7 @@ ../common/optional/key.nix + ./programs ./services ./hardware-configuration.nix ]; @@ -51,12 +52,6 @@ networkmanager.enable = true; }; - programs = { - zsh.enable = true; - direnv.enable = true; - adb.enable = true; - }; - # Use docker instead of podman for our containers. virtualisation.docker = { enable = true; diff --git a/nixos/fuchsia/programs/default.nix b/nixos/fuchsia/programs/default.nix new file mode 100644 index 0000000..033c41f --- /dev/null +++ b/nixos/fuchsia/programs/default.nix @@ -0,0 +1,12 @@ +{ ... }: + +{ + programs = { + zsh.enable = true; + # Load and unload environment variables. + direnv.enable = true; + # Android debug bridge: communicate with devices. + adb.enable = true; + }; +} +