-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
112 lines (110 loc) · 3.39 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
description = "ktaf NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# nixpkgs.url = "github:ktaf/nixpkgs/python312Packages.localstack";
nixos-hardware.url = "github:nixos/nixos-hardware";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixGL = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, nixos-hardware, nixGL, nix-index-database, ... } @ inputs:
let
user = "kourosh";
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
};
lib = nixpkgs.lib;
in
{
homeConfigurations."${user}" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit self nixpkgs inputs nixGL;
};
modules = [
nix-index-database.hmModules.nix-index
./hosts/x1g12-HM/home.nix
./_modules_hm/gui
./_modules_hm/terminal
./_modules_hm/syncthing.nix
];
};
nixosConfigurations = {
x1g12 = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./hosts/x1g12/configuration.nix
nixos-hardware.nixosModules.lenovo-thinkpad-x1-12th-gen
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = import ./hosts/x1g12/home.nix;
};
}
];
};
arvanix = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./hosts/arvanix/configuration.nix
];
};
xps9510 = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./hosts/xps9510/configuration.nix
nixos-hardware.nixosModules.dell-xps-15-9510
nixos-hardware.nixosModules.dell-xps-15-9510-nvidia
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = import ./hosts/xps9510/home.nix;
};
}
];
};
lat7310 = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./hosts/lat7310/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = import ./hosts/lat7310/home.nix;
};
}
];
};
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
};
}
#nixos-24.11