-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
60 lines (55 loc) · 1.6 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
{
description = "My test of nix flake";
inputs = {
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixpkgs-unstable";
};
nixpkgs-stable = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "release-23.05";
};
home-manager = {
type = "github";
owner = "nix-community";
repo = "home-manager";
ref = "release-23.05";
inputs = { nixpkgs.follows = "nixpkgs-stable"; };
};
arkenfox-nixos = {
type = "github";
owner = "dwarfmaster";
repo = "arkenfox-nixos";
ref = "main";
inputs = { nixpkgs.follows = "nixpkgs-stable"; };
};
};
outputs =
{ self, nixpkgs, nixpkgs-stable, home-manager, arkenfox-nixos, ... }@inputs:
let
inherit (self) outputs;
system = "x86_64-linux";
commonModules = [ ./modules/common ] ++ [
home-manager.nixosModules.home-manager
{
#Need for overlays and for allow unfree packages
#inside homemanager module
home-manager.useGlobalPkgs = false;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs outputs; };
home-manager.sharedModules = [ ./modules/common ];
# home-manager.users.serg = import ./hosts/nixos-host/home.nix;
}
];
in {
overlays = import ./overlays { inherit inputs; };
nixosConfigurations.nixos = nixpkgs-stable.lib.nixosSystem {
inherit system;
modules = [ ./hosts/nixos-host/configuration.nix ] ++ commonModules;
};
};
}