-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
62 lines (57 loc) · 1.99 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
{
description = "OS config";
inputs = {
newest_nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
grub2-themes = { url = "github:vinceliuice/grub2-themes"; };
};
outputs =
{ self, nixpkgs, home-manager, grub2-themes, newest_nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
newest_pkgs = import newest_nixpkgs {
system = system;
config.allowUnfree = true;
};
in {
nixosConfigurations = {
fekete = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs system newest_pkgs; };
modules = [
./configurations/common/configuration.nix
# ./configurations/common/custom_pkgs.nix
./hardware/desktop/load_hardware.nix
./home-manager/fekete/load_home.nix
grub2-themes.nixosModules.default
];
};
ferenti = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs system newest_pkgs; };
modules = [
./configurations/common/configuration.nix
# ./configurations/common/custom_pkgs.nix
./hardware/laptop/load_hardware.nix
./home-manager/ferenti/load_home.nix
grub2-themes.nixosModules.default
];
};
};
homeConfigurations."ferenti" = home-manager.lib.homeManagerConfiguration {
pkgs = pkgs;
extraSpecialArgs = { newest_pkgs = newest_pkgs; };
modules = [ ./home-manager/ferenti/home.nix ];
};
homeConfigurations."fekete" = home-manager.lib.homeManagerConfiguration {
pkgs = pkgs;
extraSpecialArgs = { newest_pkgs = newest_pkgs; };
modules = [ ./home-manager/fekete/home.nix ];
};
};
}