40 lines
902 B
Nix
40 lines
902 B
Nix
{
|
|
description = "My NixOS system flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
|
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
} @ inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
host = "rihla";
|
|
user = "shahab";
|
|
lib = nixpkgs.lib;
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
nixosConfigurations = {
|
|
"${host}" = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [ ./nixos/configuration.nix ];
|
|
specialArgs = { inherit inputs; };
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"${user}" = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [ ./home-manager/home.nix ];
|
|
};
|
|
};
|
|
};
|
|
}
|