chore: separate nixos & home-manager configuration into own directories

This commit is contained in:
Khaïs COLIN 2024-07-28 10:15:03 +02:00
parent 39cd2bc920
commit 70131093c3
21 changed files with 0 additions and 0 deletions

37
home-manager/flake.nix Normal file
View file

@ -0,0 +1,37 @@
{
description = "My Home Manager configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim-flake = {
url = "path:./nixvim";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
outputs = { nixpkgs, home-manager, nixvim-flake, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
inputs.nixvim-flake = nixvim-flake;
in {
homeConfigurations = {
t470 = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home.nix
];
extraSpecialArgs = {
inherit inputs;
};
};
};
};
}