From bae014ee640255bce2f86befe7c83f5d221dd4f3 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Fri, 9 Aug 2024 11:44:43 +0200 Subject: [PATCH] Changed config options --- hosts/desktop/home.nix | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/hosts/desktop/home.nix b/hosts/desktop/home.nix index 300cf01..1d452a7 100644 --- a/hosts/desktop/home.nix +++ b/hosts/desktop/home.nix @@ -12,14 +12,27 @@ ../../modules/home/cli/common ]; - home = { - username = "xeovalyte"; - homeDirectory = "/home/xeovalyte"; + options = { + host = lib.mkOption { + type = with lib.types; str; + description = '' + Define the host of the machine + ''; + }; }; - home.packages = with pkgs; [ - unstable.prismlauncher - ]; + config = { + home = { + username = "xeovalyte"; + homeDirectory = "/home/xeovalyte"; + }; - home.stateVersion = "24.05"; + host = "xv-desktop"; + + home.packages = with pkgs; [ + unstable.prismlauncher + ]; + + home.stateVersion = "24.05"; + }; }