ark/flake.nix

143 lines
4.4 KiB
Nix
Raw Normal View History

2019-12-03 08:18:30 +03:00
{
2022-04-09 21:33:13 +03:00
description = "config!!!";
2022-04-09 18:01:35 +03:00
2022-04-09 21:33:13 +03:00
inputs = {
2023-05-08 23:09:44 +03:00
nixpkgs-master.url = "github:nixos/nixpkgs/master";
2023-02-05 23:23:38 +03:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2022-07-01 04:45:26 +03:00
nur.url = "github:nix-community/NUR";
2022-04-09 18:01:35 +03:00
2024-05-28 05:49:23 +03:00
nixos-wsl.url = "github:nix-community/NixOS-WSL";
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
2022-04-17 19:20:06 +03:00
home.url = "github:nix-community/home-manager/master";
home.inputs.nixpkgs.follows = "nixpkgs";
2022-04-09 18:01:35 +03:00
2022-04-09 21:33:13 +03:00
nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-persistence.url = "github:nix-community/impermanence";
2022-05-28 16:12:53 +03:00
2022-07-30 05:03:10 +03:00
nixinate.url = "github:matthewcroughan/nixinate";
2022-07-30 05:14:17 +03:00
nixinate.inputs.nixpkgs.follows = "nixpkgs";
2022-06-21 23:31:28 +03:00
2022-09-12 02:24:41 +03:00
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
nixpkgs-wayland.flake = false;
2022-06-21 23:31:28 +03:00
helix.url = "github:helix-editor/helix";
2022-09-12 02:24:41 +03:00
2024-09-26 23:28:02 +03:00
blog.url = "https://git.gaze.systems/gazesys/website/releases/download/latest/source.tgz";
2022-07-30 06:54:32 +03:00
blog.inputs.nixpkgs.follows = "nixpkgs";
2022-09-12 02:24:41 +03:00
2022-07-30 10:44:10 +03:00
bernbot.url = "github:yusdacra/bernbot";
bernbot.inputs.nixpkgs.follows = "nixpkgs";
2022-09-12 02:24:41 +03:00
2023-08-23 14:06:38 +03:00
conduit.url = "gitlab:famedly/conduit/next";
2023-03-16 17:59:13 +03:00
conduit.inputs.nixpkgs.follows = "nixpkgs";
2023-08-23 14:06:38 +03:00
# nil.url = "github:oxalica/nil";
# nil.inputs.nixpkgs.follows = "nixpkgs";
nixd.url = "github:nix-community/nixd";
nixd.inputs.nixpkgs.follows = "nixpkgs";
2022-09-12 02:24:41 +03:00
2023-05-04 03:13:26 +03:00
stylix.url = "github:yusdacra/stylix/fixed";
2023-03-24 15:10:42 +03:00
stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.inputs.home-manager.follows = "home";
2023-05-04 03:13:26 +03:00
vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
vscode-extensions.inputs.nixpkgs.follows = "nixpkgs";
2023-05-05 01:54:16 +03:00
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
2024-08-15 14:23:25 +03:00
musikquad.url = "git+https://git.gaze.systems/dusk/musikquadrupled.git";
2023-05-08 23:09:44 +03:00
musikquad.inputs.nixpkgs.follows = "nixpkgs";
2024-08-15 14:23:25 +03:00
musikspider.url = "git+https://git.gaze.systems/dusk/musikspider.git";
2024-10-01 18:51:44 +03:00
# musikspider.inputs.nixpkgs.follows = "nixpkgs";
2023-05-08 23:09:44 +03:00
2023-07-25 13:54:23 +03:00
limbusart.url = "git+https://git.gaze.systems/dusk/limbusart.git";
2024-10-01 18:51:44 +03:00
# limbusart.inputs.nixpkgs.follows = "nixpkgs";
2023-07-25 13:54:23 +03:00
2023-09-10 21:40:39 +03:00
nh.url = "github:viperML/nh";
nh.inputs.nixpkgs.follows = "nixpkgs";
2023-08-23 14:06:38 +03:00
2023-11-11 18:39:26 +03:00
discordrp-mpris.url = "github:yusdacra/discordrp-mpris-flake";
discordrp-mpris.inputs.nixpkgs.follows = "nixpkgs";
2024-01-14 22:05:39 +03:00
s3s.url = "github:yusdacra/s3s-flake";
s3s.inputs.nixpkgs.follows = "nixpkgs";
2023-11-24 17:02:44 +03:00
naked-shell.url = "github:yusdacra/mk-naked-shell";
naked-shell.flake = false;
2024-05-28 05:49:23 +03:00
nixtopo.url = "github:oddlama/nix-topology";
nixtopo.inputs.nixpkgs.follows = "nixpkgs";
2023-10-13 23:14:32 +03:00
# vfio.url = "github:yusdacra/nixos-vfio";
# vfio.inputs.nixpkgs.follows = "nixpkgs";
2023-10-08 09:51:05 +03:00
2023-02-25 02:08:04 +03:00
# needed for hyprland setup
2023-03-16 17:59:13 +03:00
# hyprland.url = "github:hyprwm/Hyprland";
# hyprland.inputs.nixpkgs.follows = "nixpkgs";
# hyprland-contrib.url = "github:hyprwm/contrib";
# hyprland-contrib.inputs.nixpkgs.follows = "nixpkgs";
2023-02-25 02:08:04 +03:00
# eww.url = "github:elkowar/eww";
# eww.inputs.nixpkgs.follows = "nixpkgs";
2022-10-04 02:08:44 +03:00
2023-02-25 00:44:31 +03:00
# catppuccin-discord.url = "https://catppuccin.github.io/discord/dist/catppuccin-mocha.theme.css";
# catppuccin-discord.flake = false;
2022-02-18 20:31:01 +03:00
};
2022-04-09 18:01:35 +03:00
2022-04-09 21:33:13 +03:00
outputs = inputs: let
2022-04-17 19:20:06 +03:00
lib = inputs.nixpkgs.lib.extend (_: _: builtins);
2022-04-10 05:48:34 +03:00
tlib = (import ./lib lib).extend (_: prev: rec {
2022-04-09 21:33:13 +03:00
makePkgs = system:
import ./pkgs-set {
2022-05-28 16:12:53 +03:00
inherit system lib inputs;
2022-04-10 05:48:34 +03:00
tlib = prev;
2022-04-09 18:01:35 +03:00
};
2022-04-10 05:48:34 +03:00
genPkgs = f: prev.genSystems (system: f (makePkgs system));
2022-04-09 21:33:13 +03:00
});
2022-07-30 05:03:10 +03:00
2022-07-01 04:45:26 +03:00
allPkgs = tlib.genPkgs (x: x);
2022-04-10 05:48:34 +03:00
2022-07-30 05:03:10 +03:00
miscApps =
2022-07-01 04:45:26 +03:00
lib.mapAttrs
(
2023-08-23 14:06:38 +03:00
_: cmds:
lib.mapAttrs
(_: cmd: {
2022-07-01 04:45:26 +03:00
type = "app";
2023-08-23 14:06:38 +03:00
program = cmd;
})
cmds
)
(
lib.mapAttrs
(
_: pkgs: {
generate-firefox-addons =
2022-07-30 05:03:10 +03:00
toString
"${pkgs.generate-firefox-addons}/bin/generate-firefox-addons";
2023-09-10 21:40:39 +03:00
nh = toString "${inputs.nh.packages.${pkgs.system}.default}/bin/nh";
2023-08-23 14:06:38 +03:00
}
)
allPkgs
);
2022-08-14 06:17:15 +03:00
in {
2022-10-04 02:08:44 +03:00
lib = tlib;
2022-07-30 05:03:10 +03:00
nixosConfigurations = import ./hosts {inherit lib tlib inputs;};
packages = lib.mapAttrs (_: pkgs: pkgs._exported) allPkgs;
2022-08-15 02:00:20 +03:00
legacyPackages = allPkgs;
2022-07-30 05:03:10 +03:00
apps = miscApps // (inputs.nixinate.nixinate.x86_64-linux inputs.self);
2022-04-10 05:48:34 +03:00
2024-05-28 05:49:23 +03:00
topology = lib.mapAttrs (_: pkgs:
import inputs.nixtopo {
inherit pkgs;
modules = [{nixosConfigurations = {inherit (inputs.self.nixosConfigurations) wolumonde;};}];
})
allPkgs;
2022-04-10 05:48:34 +03:00
devShells = import ./shells {inherit lib tlib inputs;};
2022-04-09 21:33:13 +03:00
};
2019-12-03 08:18:30 +03:00
}