-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
63 lines (55 loc) · 1.47 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
{
description = "Me when the linux";
inputs = {
# NixOS official package source, using the unstable branch here
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixvim = {
url = "github:nix-community/nixvim/";
inputs.nixpkgs.follows = "nixpkgs";
};
musnix = {url = "github:musnix/musnix";};
nix-alien = {url = "github:thiagokokada/nix-alien";};
yeetmouse = {
url = "github:AndyFilter/YeetMouse?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = {
nixpkgs,
nixvim,
home-manager,
yeetmouse,
...
} @ inputs: let
system = "x86_64-linux";
unfreePkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
in {
nixosConfigurations = {
ratholomew = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
./modules
home-manager.nixosModules.home-manager
inputs.musnix.nixosModules.musnix
yeetmouse.nixosModules.default
];
};
};
packages = {
${system}.neovim = nixvim.legacyPackages.${system}.makeNixvimWithModule {
pkgs = unfreePkgs;
module = import ./modules/system/nixvim.nix;
};
};
};
}