Adding Multiple User Support

This commit is contained in:
Tyler Kelley 2024-04-03 22:50:35 -05:00
parent b32c12db96
commit 79c07e8567
3 changed files with 5 additions and 2 deletions

View File

@ -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. - 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! - 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!
<div align="center"> <div align="center">
![](./config/home/files/media/demo.mp4) ![](./config/home/files/media/demo.mp4)

View File

@ -50,7 +50,7 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
home-manager.users.${username} = import ./home.nix; home-manager.users.${username} = import ./users/default/home.nix;
} }
]; ];
}; };

View File

@ -1,7 +1,7 @@
{ config, pkgs, inputs, username, { config, pkgs, inputs, username,
host, gtkThemeFromScheme, ... }: host, gtkThemeFromScheme, ... }:
let let
inherit (import ./hosts/${host}/options.nix) inherit (import ./../../hosts/${host}/options.nix)
gitUsername gitEmail theme browser gitUsername gitEmail theme browser
wallpaperDir wallpaperGit flakeDir wallpaperDir wallpaperGit flakeDir
waybarStyle; waybarStyle;