-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
47 lines (40 loc) · 1.28 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
{
description = "A highly awesome system configuration.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nur.url = github:nix-community/NUR;
home-manager = { url = github:nix-community/home-manager/master; inputs.nixpkgs.follows = "nixpkgs"; };
doom-emacs.url = "github:vlaci/nix-doom-emacs";
};
outputs = inputs@{ self, nur, home-manager, nixpkgs, doom-emacs, ... }:
let
inherit (nixpkgs) lib;
inherit (lib) recursiveUpdate;
system = "x86_64-linux";
my-pkgs = import ./overlays;
utils = import ./utility-functions.nix {
inherit lib system pkgs inputs self;
nixosModules = self.nixosModules;
};
pkgs = utils.pkgImport nixpkgs []; # self.overlays
in
{
nixosModules = [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
nixpkgs.config.allowUnfree = true;
home-manager.users.unrooted = { imports = [ ./home-manager/home.nix doom-emacs.hmModule ];
};
}
];
nixosConfigurations = utils.buildNixosConfigurations [
./configurations/NaughtyOne.host.nix
];
# overlay = my-pkgs;
# overlays = [
# my-pkgs
# ];
};
}