-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
43 lines (42 loc) · 998 Bytes
/
home.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ config, pkgs, lib, ... }:
let
home = builtins.getEnv "HOME";
in
if home == "/home/fatmonad" then
{
imports = [
./program/default.nix
./program/linux.nix
./service/default.nix
./user/linux_x86/fatmonad.nix
];
kirby.user.linux_x86.fatmonad.enable = true;
}
else if home == "/Users/ailrk" then
{
imports = [
./program/default.nix
./program/darwin.nix
./service/default.nix
./user/darwin_m1/ailrk.nix
];
kirby.user.darwin_m1.ailrk = {
enable = true;
core = true;
nix = true;
cli = true;
haskell = false;
fonts = true;
extra = [ pkgs.qemu ];
};
}
else if home == "/home/ailrk-asahi" then
{
imports = [
./program/default.nix
./program/linux.nix
./service/default.nix
./user/linux_m1/ailrk-asahi.nix
];
kirby.user.linux_m1.ailrk_asahi.enable = true;
} else abort "unknown user"