feat(homes/rafiq): add home-manager to flake

This commit is contained in:
Mohammad Rafiq 2025-05-18 15:57:42 +08:00
parent 7b591ba470
commit 3c9ea603c4
4 changed files with 43 additions and 4 deletions

21
flake.lock generated
View file

@ -73,6 +73,26 @@
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1747439237,
"narHash": "sha256-5rCGrnkglKKj4cav1U3HC+SIUNJh08pqOK4spQv9RjA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "ae755329092c87369b9e9a1510a8cf1ce2b1c708",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"impermanence": {
"locked": {
"lastModified": 1737831083,
@ -107,6 +127,7 @@
"root": {
"inputs": {
"disko": "disko",
"home-manager": "home-manager",
"impermanence": "impermanence",
"nixpkgs": "nixpkgs",
"snowfall-lib": "snowfall-lib"

View file

@ -6,6 +6,8 @@
snowfall-lib.url = "github:snowfallorg/lib";
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs:

View file

@ -0,0 +1,20 @@
{ config, pkgs, osConfig, ... }:
{
home.stateVersion = "24.11";
home.packages = with pkgs; [
git
neovim
ripgrep
];
home.file = {
};
home.sessionVariables = {
EDITOR = "nvim";
};
programs.home-manager.enable = true;
}

View file

@ -8,10 +8,6 @@
extraGroups = [
"wheel"
];
packages = with pkgs; [
git
neovim
];
};
}
];