From 3384c77a2d43d1324d0f84f1676254867c2a6f01 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 22 Apr 2021 20:59:54 +0200 Subject: [PATCH] poseidon: enable home-manager --- flake.nix | 15 +++++++++++++++ hosts/poseidon/default.nix | 2 ++ hosts/poseidon/home.nix | 7 +++++++ 3 files changed, 24 insertions(+) create mode 100644 hosts/poseidon/home.nix diff --git a/flake.nix b/flake.nix index d97a6ac..cf36ae3 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/hosts/poseidon/default.nix b/hosts/poseidon/default.nix index b89fdc7..e1a1fc2 100644 --- a/hosts/poseidon/default.nix +++ b/hosts/poseidon/default.nix @@ -10,6 +10,8 @@ in imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + + ./home.nix ]; # Use the GRUB 2 boot loader. diff --git a/hosts/poseidon/home.nix b/hosts/poseidon/home.nix new file mode 100644 index 0000000..77f374e --- /dev/null +++ b/hosts/poseidon/home.nix @@ -0,0 +1,7 @@ +{ config, ... }: +{ + home-manager.users.alarsyo = { + my.home.tmux.enable = true; + my.home.fish.enable = true; + }; +}