init: base flake + minimal home config
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
description = "Ayman's Home Manager configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, ... }:
|
||||
let
|
||||
mkHome = { system, modules }:
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = modules;
|
||||
};
|
||||
in
|
||||
{
|
||||
homeConfigurations = {
|
||||
"ayman@archThinkpad" = mkHome {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./home/base.nix ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user