poseidon: enable home-manager

This commit is contained in:
Antoine Martin 2021-04-22 20:59:54 +02:00
parent 3ae7ab21bc
commit 3384c77a2d
3 changed files with 24 additions and 0 deletions

View file

@ -35,9 +35,24 @@
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules =
let
unstablePkgs = import nixpkgs-unstable { inherit system; };
in
[
./poseidon.nix
({ config, utils, ... }: home-manager.nixosModules.home-manager {
pkgs = unstablePkgs;
lib = unstablePkgs.lib;
inherit config utils;
})
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
home-manager.verbose = true;
}
{
nixpkgs.overlays =
let

View file

@ -10,6 +10,8 @@ in
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./home.nix
];
# Use the GRUB 2 boot loader.

7
hosts/poseidon/home.nix Normal file
View file

@ -0,0 +1,7 @@
{ config, ... }:
{
home-manager.users.alarsyo = {
my.home.tmux.enable = true;
my.home.fish.enable = true;
};
}