-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
46 lines (42 loc) · 1.4 KB
/
flake.nix
File metadata and controls
46 lines (42 loc) · 1.4 KB
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
44
45
{
description = "Home Manager configuration of yimuchen";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
# Configurations for personal systems
# Configurations for LPC systems
homeConfigurations."yimuchen" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./pkg/nix/host/lpc.nix ];
};
# Configuration for lxplus systems
homeConfigurations."yichen" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./pkg/nix/host/lxplus.nix ];
};
# Configuration for UMD clusters
homeConfigurations."yichen@hepcms-rubin" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./pkg/nix/host/umdcms.nix ];
};
# Configuration for KIT cluster system
homeConfigurations."ychen" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./pkg/nix/host/kit.nix ];
};
# We need to treat this as a package,
defaultPackage.${system} = pkgs.zsh;
};
}