initial commit

This commit is contained in:
2024-11-09 11:52:23 +05:00
commit 6bef6874b7
11 changed files with 437 additions and 0 deletions

37
flake.nix Normal file
View File

@@ -0,0 +1,37 @@
{
description = "My NixOS system flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
...
}:
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 ];
};
};
homeConfigurations = {
"${user}" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home-manager/home.nix ];
};
};
};
}