-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
69 lines (66 loc) · 2.27 KB
/
flake.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
description = ''
Nix Configurations for
Jorge's Laptop Pro (MacBook Pro 14),
Jorge's Laptop Ultra (Framework 13) and
Pomu (my Linux RockPro64 server)
'';
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware";
nixos-grub-themes.url = "github:jeslie0/nixos-grub-themes";
darwin.url = "github:LnL7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, nixpkgs, nixos-hardware, nixos-grub-themes, darwin, home-manager, ... }: {
darwinConfigurations = {
"Jorges-Laptop-Pro" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./configuration.nix
./hosts/specialization/Jorges-Laptop-Pro.nix
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.thebitstick = import ./home/Jorges-Laptop-Pro.nix;
}
];
};
};
nixosConfigurations = {
"Jorges-Laptop-Ultra" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
./hosts/hardware-configuration/Jorges-Laptop-Ultra.nix
./hosts/specialization/Jorges-Laptop-Ultra.nix
nixos-hardware.nixosModules.framework-13-7040-amd
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.thebitstick = import ./home/Jorges-Laptop-Ultra.nix;
}
];
};
"pomu" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./configuration.nix
./hosts/hardware-configuration/Pomu.nix
./hosts/specialization/Pomu.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.admin = import ./home/Pomu.nix;
}
];
};
};
};
}