-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
68 lines (64 loc) · 1.72 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
{
description = "NixOS configurations for my PCs";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/master";
nixpkgs.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
wayland.url = "github:nix-community/nixpkgs-wayland";
wayland.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";
};
outputs =
{
nixpkgs,
home-manager,
wayland,
impermanence,
...
}:
{
## test
nixosConfigurations =
let
nixosSystem =
opts:
(import ./lib/nixosSystem.nix {
inherit nixpkgs;
inherit (opts) system patches;
})
{
inherit (opts)
hostname
profile
overlays
modules
;
};
in
{
nixos = nixosSystem {
hostname = "nixos";
profile = import ./system/profile/NyZen9.nix;
system = "x86_64-linux";
patches = [ ];
overlays = [
wayland.overlay
(import ./pkgs/default.nix)
(import ./pkgs/temporary.nix)
];
modules = [
impermanence.nixosModules.impermanence
home-manager.nixosModules.home-manager
(_: {
home-manager = {
useGlobalPkgs = true;
useUserPackages = false;
users.nyarla = import ./dotfiles/user/nyarla.nix;
};
})
];
};
};
};
}