-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
105 lines (91 loc) · 2.81 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
description = "A very basic flake";
inputs = {
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-extra = {
url = "github:luisnquin/nixpkgs-extra";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs_mysql_57.url = "github:NixOS/nixpkgs?rev=06c9198cbf48559191bf6c9b76c0f370f96b8c33";
nixtheplanet.url = "github:matthewcroughan/nixtheplanet";
spicetify-nix.url = "github:the-argus/spicetify-nix";
grub-themes.url = "github:luisnquin/grub-themes";
hyprland-contrib.url = "github:hyprwm/contrib";
scripts.url = "github:luisnquin/scripts";
hyprland.url = "github:hyprwm/Hyprland";
nixpkgs.url = "nixpkgs/nixos-unstable";
senv.url = "github:luisnquin/senv";
nao.url = "github:luisnquin/nao";
};
outputs = inputs:
with inputs; let
system = "x86_64-linux";
pkgs = import nixpkgs {
config = {
allowBroken = false;
allowUnfree = true;
};
inherit system;
};
host = {
name = "nixos";
monitors = [
{
resolution = "1920x1080";
position = "0x0";
scale = "1";
}
# {
# resolution = "highres";
# position = "1920x0";
# scale = "1";
#}
#{
# resolution = "1600x900";
# position = "0x0";
# scale = "1";
#}
];
};
user = {
fullName = "Raiden";
alias = "raiden";
gitEmail = "[email protected]";
};
dotfilesDir = "~/.dotfiles";
specialArgs =
{
grub-pkgs = grub-themes.packages.${system};
pkgsx = nixpkgs-extra.packages.${system}; # // import ./pkgs {inherit pkgs;};
mysql_57 = (import nixpkgs_mysql_57 {inherit system;}).mysql57;
spicetify = spicetify-nix.packages.${pkgs.system}.default;
senv = senv.defaultPackage.${system};
inherit (hyprland.packages.${system}) hyprland xdg-desktop-portal-hyprland;
inherit pkgs host user dotfilesDir nixtheplanet;
}
// hyprland-contrib.packages.${system}
// scripts.packages.${system};
in {
nixosConfigurations.${host.name} = nixpkgs.lib.nixosSystem {
inherit (pkgs) system;
inherit specialArgs;
modules = [
nixtheplanet.nixosModules.macos-ventura
./system/configuration.nix
];
};
homeConfigurations.${user.alias} = home-manager.lib.homeManagerConfiguration {
extraSpecialArgs = specialArgs;
inherit pkgs;
modules = [
nao.homeManagerModules.default
spicetify-nix.homeManagerModule
./home/options
./home/home.nix
];
};
};
}