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

View file

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