refactor(nvf): add nvf as home package instead of system

This commit is contained in:
rafiq 2025-02-27 04:23:18 +08:00
parent 7a7f6b1e25
commit b54b143766
2 changed files with 12 additions and 7 deletions

View file

@ -7,11 +7,15 @@
home-manager, home-manager,
nvf, nvf,
... ...
} @ inputs: { } @ inputs:
let
args = { inherit self inputs; };
in
{
# System Configurations # System Configurations
nixosConfigurations = { nixosConfigurations = {
nemesis = nixpkgs.lib.nixosSystem { nemesis = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = args;
modules = [ modules = [
./hosts/nemesis ./hosts/nemesis
@ -22,15 +26,12 @@
# Install user packages to /etc/profiles # Install user packages to /etc/profiles
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
# Pass inputs to home-manager configurations # Pass inputs to home-manager configurations
home-manager.extraSpecialArgs = { inherit inputs; }; home-manager.extraSpecialArgs = args;
# Add the users # Add the users
home-manager.users.rafiq.imports = [ home-manager.users.rafiq.imports = [
./users/rafiq ./users/rafiq
]; ];
} }
# Include NVF in the system
({ pkgs, ... }: { environment.systemPackages = [ self.packages.${pkgs.stdenv.system}.nvf ]; })
]; ];
}; };
}; };

View file

@ -1,9 +1,13 @@
{ config, pkgs, inputs, ... }: { self, config, pkgs, inputs, ... }:
{ {
home.username = "rafiq"; home.username = "rafiq";
home.homeDirectory = "/home/rafiq"; home.homeDirectory = "/home/rafiq";
home.packages = [
self.packages.${pkgs.stdenv.system}.nvf
];
programs.git = { programs.git = {
enable = true; enable = true;
userName = "rafiq"; userName = "rafiq";