Flake for my NixOS devices
1{
2 description = "A very basic flake";
3
4 inputs = {
5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6 flakelight.url = "github:nix-community/flakelight";
7 flakelight.inputs.nixpkgs.follows = "nixpkgs";
8 nix-index-db.url = "github:nix-community/nix-index-database";
9 nix-index-db.inputs.nixpkgs.follows = "nixpkgs";
10 hm.url = "github:nix-community/home-manager";
11 hm.inputs.nixpkgs.follows = "nixpkgs";
12 nixos-hardware.url = "github:NixOS/nixos-hardware";
13 lanzaboote.url = "github:nix-community/lanzaboote";
14 lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
15 wayland-mpris-idle-inhibit.url = "github:Bwc9876/wayland-mpris-idle-inhibit";
16 wayland-mpris-idle-inhibit.inputs.nixpkgs.follows = "nixpkgs";
17 fenix.url = "github:nix-community/fenix/monthly";
18 fenix.inputs.nixpkgs.follows = "nixpkgs";
19 catppuccin.url = "github:catppuccin/nix";
20 catppuccin.inputs.nixpkgs.follows = "nixpkgs";
21 nixvim.url = "github:nix-community/nixvim";
22 nixvim.inputs.nixpkgs.follows = "nixpkgs";
23 imperm.url = "github:nix-community/impermanence";
24 nu_plugin_dbus.url = "github:Bwc9876/nu_plugin_dbus";
25 nu_plugin_dbus.inputs.nixpkgs.follows = "nixpkgs";
26 gh-grader-preview.url = "github:Bwc9876/gh-grader-preview";
27 gh-grader-preview.inputs.nixpkgs.follows = "nixpkgs";
28 bingus.url = "github:Bwc9876/bingus-bot";
29 bingus.inputs.nixpkgs.follows = "nixpkgs";
30 niri.url = "github:sodiboo/niri-flake";
31 niri.inputs.nixpkgs.follows = "nixpkgs";
32 nod.url = "github:nix-community/nix-on-droid";
33 nod.inputs.nixpkgs.follows = "nixpkgs";
34 nod.inputs.home-manager.follows = "hm";
35
36 spoon.url = "git+https://codeberg.org/spoonbaker/mono";
37 spoon.inputs = {
38 nixpkgs.follows = "nixpkgs";
39 flakelight.follows = "flakelight";
40 home-manager.follows = "hm";
41 impermanence.follows = "imperm";
42 };
43 };
44
45 outputs = inputs @ {
46 self,
47 nixpkgs,
48 flakelight,
49 nix-index-db,
50 hm,
51 nod,
52 nixos-hardware,
53 lanzaboote,
54 wayland-mpris-idle-inhibit,
55 fenix,
56 catppuccin,
57 nixvim,
58 imperm,
59 nu_plugin_dbus,
60 bingus,
61 spoon,
62 gh-grader-preview,
63 niri,
64 }:
65 flakelight ./. {
66 imports = [
67 spoon.flakelightModules.repl
68 spoon.flakelightModules.ubercheck
69 ];
70 inherit inputs;
71 formatters = pkgs: {
72 "*.nix" = "alejandra .";
73 "*.sh" = "shfmt -w .";
74 };
75
76 nixDir = ./.;
77 legacyPackages = pkgs: pkgs;
78 nixpkgs.config = {
79 allowUnfree = true;
80 };
81 };
82}