-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
60 lines (56 loc) · 1.39 KB
/
Copy pathflake.nix
File metadata and controls
60 lines (56 loc) · 1.39 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
description = "Home Manager configuration for macOS and Linux";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-env-fish = {
url = "github:lilyball/nix-env.fish";
flake = false;
};
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
};
outputs =
{
nixpkgs,
home-manager,
nix-env-fish,
nix-flatpak,
...
}:
let
mkHome =
{
system,
modules,
}:
home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
inherit modules;
extraSpecialArgs = {
inherit nix-env-fish;
};
};
in
{
homeConfigurations."limouren" = mkHome {
system = "aarch64-darwin";
modules = [
./home-common.nix
./home-darwin.nix
];
};
homeConfigurations."bazzite" = mkHome {
system = "x86_64-linux";
modules = [
nix-flatpak.homeManagerModules.nix-flatpak
./home-common.nix
./home-bazzite.nix
];
};
formatter.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.nixfmt-tree;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-tree;
};
}