From 183f1a10a350c34c4a3b112db1aa7e8671bc5ca2 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Mon, 10 Apr 2023 23:23:52 +0530 Subject: [PATCH] separate out programs and services --- system.rico/default.nix | 5 ++--- system.rico/programs/default.nix | 6 ++++++ system.rico/services/default.nix | 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 system.rico/programs/default.nix create mode 100644 system.rico/services/default.nix diff --git a/system.rico/default.nix b/system.rico/default.nix index 5bbb449..495cb94 100644 --- a/system.rico/default.nix +++ b/system.rico/default.nix @@ -2,6 +2,8 @@ imports = [ ./hardware + ./programs + ./services ]; networking.hostName = "Rico2"; @@ -23,9 +25,6 @@ supportedLocales = [ "en_US.UTF-8/UTF-8" ]; }; - programs.zsh.enable = true; - services.openssh.enable = true; - time.timeZone = "Asia/Kolkata"; system.stateVersion = "23.05"; } diff --git a/system.rico/programs/default.nix b/system.rico/programs/default.nix new file mode 100644 index 0000000..1d286bf --- /dev/null +++ b/system.rico/programs/default.nix @@ -0,0 +1,6 @@ +{ ... }: { + programs = { + zsh.enable = true; + }; + environment.pathsToLink = [ "/share/zsh" ]; +} diff --git a/system.rico/services/default.nix b/system.rico/services/default.nix new file mode 100644 index 0000000..914b807 --- /dev/null +++ b/system.rico/services/default.nix @@ -0,0 +1,3 @@ +{ ... }: { + services.openssh.enable = true; +}