refactor(nvf): add nvf as home package instead of system
This commit is contained in:
parent
7a7f6b1e25
commit
b54b143766
2 changed files with 12 additions and 7 deletions
13
flake.nix
13
flake.nix
|
@ -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 ]; })
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue