Add hostConfig variable to store host information
This commit is contained in:
parent
9bc37a8d8c
commit
ba4ffd6bf1
5 changed files with 63 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, hostConfig, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
emojione
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ hostConfig, ... }:
|
||||
let
|
||||
cfg = hostConfig;
|
||||
in {
|
||||
imports = [
|
||||
./sway.nix
|
||||
./mako.nix
|
||||
|
@ -7,5 +9,9 @@
|
|||
./swaylock.nix
|
||||
./swayidle.nix
|
||||
./fuzzel.nix
|
||||
];
|
||||
] ++ (
|
||||
if hostConfig.laptop then
|
||||
[ ./kanshi.nix ]
|
||||
else []
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue