init: base flake + minimal home config

This commit is contained in:
2026-03-03 21:03:50 +01:00
commit 3c8910ccc7
3 changed files with 92 additions and 0 deletions
Generated
+48
View File
@@ -0,0 +1,48 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1772516620,
"narHash": "sha256-2r4cKdqCVlQkvcTcLUMxmsmAYZZxCMd//w/PnDnukTE=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "2b9504d5a0169d4940a312abe2df2c5658db8de9",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1772525000,
"narHash": "sha256-M7kpjimt0jdEQzmin6ptszf8ev7TVzibyZNSLaLquMM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "72b1d820cb0149b40a35aa077b4b6d60cd1b23c3",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+29
View File
@@ -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 ];
};
};
};
}
+15
View File
@@ -0,0 +1,15 @@
{ pkgs, ... }:
{
home.username = "ayman";
home.homeDirectory = "/home/ayman";
home.stateVersion = "24.11";
programs.home-manager.enable = true;
home.packages = with pkgs; [
ripgrep
fd
bat
];
}