-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
executable file
·89 lines (86 loc) · 2.64 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
stylix.url = "github:danth/stylix";
pkl.url = "github:capslock/pkl-flake";
lampray.url = "github:Apollo-XIV/nix-lampray";
nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, hyprland, nur, stylix, pkl, lampray, nix-on-droid, ... }@inputs: {
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration{
pkgs = import nixpkgs { system = "aarch64-linux"; };
modules = [
./hosts/nix-on-droid/config.nix
];
};
nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
stylix.nixosModules.stylix
inputs.home-manager.nixosModules.default
nur.nixosModules.nur
({pkgs, ...}: {
nixpkgs.overlays = [
nur.overlay
lampray.overlay
(import ./overlays/programs.nix)
];
imports = [
./hosts/default/configuration.nix
];
})
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
# home-manager.users.acrease = {
# imports = [
# hyprlock.homeManagerModules.hyprlock
# ];
# };
}
];
};
salas = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
inputs.home-manager.nixosModules.default
nur.nixosModules.nur
({pkgs, ...}: {
nixpkgs.overlays = [
nur.overlay
(import ./overlays/programs.nix)
];
imports = [
./hosts/salas/configuration.nix
];
})
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
];
};
live-iso = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-gnome.nix"
({pkgs, ...}: {
environment.systemPackages = [pkgs.git];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
})
];
};
};
};
}