Host based configuration

This commit is contained in:
Filippo Berto 2021-10-25 23:29:23 +02:00
parent 1502fa1e36
commit b4571fbe53
10 changed files with 106 additions and 79 deletions

13
home.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs, lib, cfg, ... }:
let
hostname = lib.fileContents /etc/hostname;
user = builtins.getEnv "USER";
host_config = builtins.toPath "/home/${user}/.config/nixpkgs/${hostname}.nix";
in
{
nixpkgs.overlays = [
(import ./rice.nix)
];
imports = [host_config ];
programs.home-manager.enable = true;
}