forked from exploitoverload/PwNixOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
51 lines (47 loc) · 1.46 KB
/
flake.nix
File metadata and controls
51 lines (47 loc) · 1.46 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
{
description = "NixOS Dotfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, nur, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
lib = nixpkgs.lib;
mkSystem = pkgs: system: hostname:
pkgs.lib.nixosSystem {
system = system;
modules = [
{ networking.hostName = hostname; }
./modules/system/configuration.nix
(./. + "/hosts/${hostname}/hardware-configuration.nix")
(./. + "/hosts/${hostname}/default.nix") # For additional configuration read this file (amd, intel, ...).
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = { inherit inputs; };
users.ether = (./. + "/hosts/${hostname}/user.nix");
};
nixpkgs.overlays = [
nur.overlay
];
}
];
specialArgs = {inherit inputs; };
};
in {
nixosConfigurations = {
areo13 = mkSystem inputs.nixpkgs "x86_64-linux" "areo13";
};
};
}