-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
51 lines (50 loc) · 1.63 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
{
description = "Prehonor NixOS";
inputs = {
nixpkgs_flake.url = "github:NixOS/nixpkgs/nixos-22.11";
# hyprland.url = "github:hyprwm/Hyprland";
# nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixos-22.11
# nixos-hardware.url = github:NixOS/nixos-hardware/master;
# emacs-overlay.url = "github:nix-community/emacs-overlay/7ba0cd76c4e5cbd4a8ac7387c8ad2493caa800f0";
# nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager/release-22.11";
inputs.nixpkgs.follows = "nixpkgs_flake";
};
};
outputs = { self, nixpkgs_flake,home-manager }@attrs:
let
system = "x86_64-linux";
hm-module = [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.prehonor = import /home/prehonor/.config/nixpkgs/home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
in
{
nixosConfigurations = {
prehonor = nixpkgs_flake.lib.nixosSystem {
inherit system;
specialArgs = attrs; # // { inputs = self.inputs; }
modules = [
./configuration.nix
# hyprland.nixosModules.default
# {programs.hyprland.enable = true;}
] ++ hm-module;
};
};
/*
homeConfigurations = (
import ./outputs/home-conf.nix {
inherit system home-manager;
nixpkgs_flake = nixpkgs_flake;
}
);
*/
};
}