58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{
|
|
description = "NixOS setup for one host with home-manager";
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
} @ inputs: let
|
|
args = {inherit self inputs;};
|
|
mkSystem = hostname:
|
|
nixpkgs.lib.nixosSystem {
|
|
specialArgs = args;
|
|
modules = [
|
|
./systems/${hostname}.nix
|
|
|
|
# Add the home-manager user
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager = {
|
|
# Don't instantiate the home-manager instance of nixpkgs
|
|
useGlobalPkgs = true;
|
|
# Install user packages to /etc/profiles
|
|
useUserPackages = true;
|
|
# Pass inputs to configurations
|
|
extraSpecialArgs = args;
|
|
# Add the users
|
|
users.rafiq.imports = [
|
|
./users/rafiq.nix
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
in {
|
|
# System Configurations
|
|
nixosConfigurations = builtins.listToAttrs [
|
|
{
|
|
name = "nemesis";
|
|
value = mkSystem "nemesis";
|
|
}
|
|
];
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
|
|
yazi.url = "github:sxyazi/yazi";
|
|
|
|
nixvim.url = "github:nix-community/nixvim";
|
|
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
}
|