flake: add home-manager
This commit is contained in:
parent
5e8aac2a5e
commit
c0feb8a462
3 changed files with 36 additions and 1 deletions
11
flake.nix
11
flake.nix
|
|
@ -1,11 +1,13 @@
|
|||
{
|
||||
description = "Nixos configuration with flakes";
|
||||
inputs = {
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nur.url = "github:nix-community/NUR";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nur }:
|
||||
outputs = { self, nixpkgs, nur, home-manager }:
|
||||
let
|
||||
buildHost = name: system: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
|
@ -20,6 +22,13 @@
|
|||
})
|
||||
{ nixpkgs.overlays = [ nur.overlay ]; }
|
||||
(./. + "/${name}.nix")
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.users.ambroisie = import ./home;
|
||||
# Nix Flakes compatibility
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue