From 79c07e8567b4ac132e09d534fd580df4929fde6d Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Wed, 3 Apr 2024 22:50:35 -0500 Subject: [PATCH] Adding Multiple User Support --- README.md | 3 +++ flake.nix | 2 +- home.nix => users/default/home.nix | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename home.nix => users/default/home.nix (95%) diff --git a/README.md b/README.md index d11ee93..cf8be02 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ ZaneyOS is a simple way of reproducing my configuration on any NixOS system. Thi - A tmpfs for the /tmp directory is created improving rebuild time and reducing strain on hdd/ssd. - No massive Neovim project here. This is my simple, easy to understand, yet incredible Neovim setup. You can grep recursively through entire folders and find specific files without ever leaving the text editor! +#### 🖥️ Multi Host & User Configuration +- You can now define separate settings for different host machines and users! +
![](./config/home/files/media/demo.mp4) diff --git a/flake.nix b/flake.nix index fcde650..eec1143 100644 --- a/flake.nix +++ b/flake.nix @@ -50,7 +50,7 @@ home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.backupFileExtension = "backup"; - home-manager.users.${username} = import ./home.nix; + home-manager.users.${username} = import ./users/default/home.nix; } ]; }; diff --git a/home.nix b/users/default/home.nix similarity index 95% rename from home.nix rename to users/default/home.nix index 77b8915..19f08c8 100644 --- a/home.nix +++ b/users/default/home.nix @@ -1,7 +1,7 @@ { config, pkgs, inputs, username, host, gtkThemeFromScheme, ... }: let - inherit (import ./hosts/${host}/options.nix) + inherit (import ./../../hosts/${host}/options.nix) gitUsername gitEmail theme browser wallpaperDir wallpaperGit flakeDir waybarStyle;