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,
|
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 ]; })
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue