Host based configuration
This commit is contained in:
parent
1502fa1e36
commit
b4571fbe53
10 changed files with 106 additions and 79 deletions
13
home.nix
Normal file
13
home.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue