2021-11-25 11:55:30 +00:00
|
|
|
{
|
2022-11-25 06:35:11 +00:00
|
|
|
description = "foo-dogsquared's abomination of a NixOS configuration";
|
2022-02-04 12:48:02 +00:00
|
|
|
|
|
|
|
nixConfig = {
|
2022-03-28 00:15:40 +00:00
|
|
|
extra-substituters =
|
2023-07-30 06:17:04 +00:00
|
|
|
"https://nix-community.cachix.org https://foo-dogsquared.cachix.org";
|
2022-03-28 00:15:40 +00:00
|
|
|
extra-trusted-public-keys =
|
2023-07-30 06:17:04 +00:00
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= foo-dogsquared.cachix.org-1:/2fmqn/gLGvCs5EDeQmqwtus02TUmGy0ZlAEXqRE70E=";
|
2024-01-16 12:08:29 +00:00
|
|
|
commit-lockfile-summary = "flake.lock: update inputs";
|
2022-02-04 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 11:08:34 +00:00
|
|
|
# Just take note we still set common flake inputs to our own version even if
|
|
|
|
# we just use the modules and its overlays just so we don't download more of
|
|
|
|
# them. Each flake update is like 100MB worth just from the multiple nixpkgs
|
|
|
|
# branches at the following section, that's edging on the "too-much" scale
|
|
|
|
# for my fragile internet bandwidth.
|
2021-11-25 11:55:30 +00:00
|
|
|
inputs = {
|
2022-08-27 05:30:04 +00:00
|
|
|
# I know NixOS can be stable but we're going cutting edge, baybee! While
|
|
|
|
# `nixpkgs-unstable` branch could be faster delivering updates, it is
|
2023-12-26 02:20:32 +00:00
|
|
|
# looser when it comes to stability for the entirety of this
|
|
|
|
# configuration...
|
2023-11-08 12:34:06 +00:00
|
|
|
nixpkgs.follows = "nixos-unstable";
|
2023-06-22 03:01:41 +00:00
|
|
|
|
2023-12-26 02:20:32 +00:00
|
|
|
# ...except we allow other configurations to use other nixpkgs branch so
|
|
|
|
# that may not matter anyways.
|
2024-06-10 05:23:02 +00:00
|
|
|
nixos-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
|
2023-06-22 03:01:41 +00:00
|
|
|
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
nixos-unstable-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
2023-12-04 10:29:37 +00:00
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2021-12-06 10:12:00 +00:00
|
|
|
|
2022-11-25 06:35:11 +00:00
|
|
|
# We're using these libraries for other functions.
|
2021-12-18 09:41:45 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
# Managing home configurations.
|
2023-12-04 10:51:41 +00:00
|
|
|
home-manager.follows = "home-manager-unstable";
|
2024-01-25 11:08:34 +00:00
|
|
|
|
2024-06-10 05:23:02 +00:00
|
|
|
home-manager-stable.url = "github:nix-community/home-manager/release-24.05";
|
2024-01-25 11:08:34 +00:00
|
|
|
home-manager-stable.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2023-12-04 10:51:41 +00:00
|
|
|
home-manager-unstable.url = "github:nix-community/home-manager";
|
2024-01-25 11:08:34 +00:00
|
|
|
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs";
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2024-01-25 11:07:54 +00:00
|
|
|
# Make a Neovim distro.
|
2024-06-10 05:24:11 +00:00
|
|
|
nixvim.follows = "nixvim-unstable";
|
|
|
|
|
|
|
|
nixvim-stable.url = "github:nix-community/nixvim/nixos-24.05";
|
|
|
|
nixvim-stable.inputs.nixpkgs.follows = "nixos-stable";
|
|
|
|
nixvim-stable.inputs.home-manager.follows = "home-manager-stable";
|
|
|
|
|
|
|
|
nixvim-unstable.url = "github:nix-community/nixvim";
|
|
|
|
nixvim-unstable.inputs.nixpkgs.follows = "nixos-unstable";
|
|
|
|
nixvim-unstable.inputs.home-manager.follows = "home-manager-unstable";
|
2024-01-25 11:07:54 +00:00
|
|
|
|
2024-11-13 05:18:10 +00:00
|
|
|
# Make a wrapper.
|
|
|
|
wrapper-manager-fds.url = "github:foo-dogsquared/nix-module-wrapper-manager-fds";
|
|
|
|
|
2022-01-02 00:48:15 +00:00
|
|
|
# This is what AUR strives to be.
|
|
|
|
nur.url = "github:nix-community/NUR";
|
|
|
|
|
2024-11-30 07:36:42 +00:00
|
|
|
# Configure those quirky hardware for you.
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
|
|
|
2022-02-04 15:36:22 +00:00
|
|
|
# Generate your NixOS systems to various formats!
|
|
|
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
|
|
|
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2021-12-11 05:37:27 +00:00
|
|
|
# Managing your secrets.
|
2022-07-17 01:36:29 +00:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2021-12-06 07:33:03 +00:00
|
|
|
|
2023-11-24 02:11:26 +00:00
|
|
|
# NixOS in Windows.
|
|
|
|
nixos-wsl.url = "github:nix-community/NixOS-WSL";
|
|
|
|
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2022-11-25 06:35:11 +00:00
|
|
|
# We're getting more unstable there should be a black hole at my home right
|
|
|
|
# now. Also, we're seem to be collecting text editors like it is Pokemon.
|
2021-12-06 07:33:03 +00:00
|
|
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
2023-04-22 06:09:29 +00:00
|
|
|
neovim-nightly-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
2022-07-09 21:40:56 +00:00
|
|
|
|
2022-01-02 00:40:01 +00:00
|
|
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
2022-07-09 21:40:56 +00:00
|
|
|
emacs-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
2022-01-02 00:40:01 +00:00
|
|
|
|
2022-08-04 13:32:15 +00:00
|
|
|
helix-editor.url = "github:helix-editor/helix";
|
|
|
|
helix-editor.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2023-06-30 04:55:40 +00:00
|
|
|
# Removing the manual partitioning part with a little boogie.
|
|
|
|
disko.url = "github:nix-community/disko";
|
|
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2022-11-13 05:49:54 +00:00
|
|
|
# Deploying stuff with Nix. This is becoming a monorepo for everything I
|
|
|
|
# need and I'm liking it.
|
|
|
|
deploy.url = "github:serokell/deploy-rs";
|
|
|
|
deploy.inputs.nixpkgs.follows = "nixpkgs";
|
2023-07-06 03:05:15 +00:00
|
|
|
|
2023-11-04 06:58:02 +00:00
|
|
|
# Add a bunch of pre-compiled indices since mine are always crashing.
|
|
|
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
|
|
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-12 11:24:59 +00:00
|
|
|
|
2024-06-10 05:26:14 +00:00
|
|
|
# Make a default.nix compatible stuff. Take note, we're giving this a
|
|
|
|
# unique suffix since there are other flake inputs that uses the same flake
|
|
|
|
# and we want our `default.nix` to refer to our version.
|
2024-01-14 04:53:55 +00:00
|
|
|
flake-compat-fds.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
|
2024-01-15 14:06:12 +00:00
|
|
|
|
|
|
|
# Someone had the idea to make the flake outputs be configured as a Nix
|
|
|
|
# module and I love them for it.
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2021-11-25 11:55:30 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 03:09:32 +00:00
|
|
|
outputs = inputs@{ self, nixpkgs, ... }:
|
2024-01-15 14:06:12 +00:00
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
2024-01-06 11:10:54 +00:00
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
2023-08-02 06:51:10 +00:00
|
|
|
|
2024-01-15 14:06:12 +00:00
|
|
|
imports = [
|
2024-01-15 23:21:31 +00:00
|
|
|
./modules/flake-parts
|
2024-01-15 14:06:12 +00:00
|
|
|
./configs/flake-parts
|
|
|
|
];
|
2022-01-25 01:32:17 +00:00
|
|
|
};
|
2021-11-25 11:55:30 +00:00
|
|
|
}
|