2023-09-29 23:46:34 -04:00
|
|
|
{
|
2023-12-03 04:50:17 -05:00
|
|
|
outputs = inputs @ {
|
2023-12-01 03:07:17 -05:00
|
|
|
self,
|
|
|
|
home-manager,
|
|
|
|
nixpkgs,
|
2023-12-08 14:59:44 -05:00
|
|
|
nix-on-droid,
|
|
|
|
neovim-flake,
|
2023-12-05 20:15:27 -05:00
|
|
|
secrets,
|
2023-12-01 03:07:17 -05:00
|
|
|
...
|
2023-12-03 04:50:17 -05:00
|
|
|
}: let
|
|
|
|
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
2023-12-03 02:24:11 -05:00
|
|
|
|
2023-12-03 04:50:17 -05:00
|
|
|
perSystem = attrs:
|
|
|
|
nixpkgs.lib.genAttrs supportedSystems (system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
|
|
|
attrs system pkgs);
|
2023-12-03 02:24:11 -05:00
|
|
|
|
2023-12-03 04:50:17 -05:00
|
|
|
# Default system
|
2023-12-05 20:10:40 -05:00
|
|
|
mkNixOS = mods:
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = inputs;
|
2023-12-01 03:07:17 -05:00
|
|
|
modules =
|
2023-12-05 20:10:40 -05:00
|
|
|
[
|
|
|
|
{home-manager.extraSpecialArgs = inputs;}
|
|
|
|
./common
|
|
|
|
]
|
|
|
|
++ mods;
|
2023-12-01 03:07:17 -05:00
|
|
|
};
|
2023-12-05 20:10:40 -05:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
|
|
wim = mkNixOS [./devices/wim];
|
|
|
|
binto = mkNixOS [./devices/binto];
|
2023-12-06 13:59:14 -05:00
|
|
|
|
2023-12-26 00:48:43 -05:00
|
|
|
servivi = mkNixOS [
|
|
|
|
./devices/servivi
|
|
|
|
secrets.nixosModules.servivi
|
|
|
|
];
|
2023-12-06 13:59:14 -05:00
|
|
|
oksys = mkNixOS [
|
|
|
|
./devices/oksys
|
|
|
|
secrets.nixosModules.oksys
|
|
|
|
];
|
2023-12-15 10:15:42 -05:00
|
|
|
|
|
|
|
live-image = mkNixOS [
|
2023-12-20 03:51:27 -05:00
|
|
|
("${nixpkgs}/nixos/modules/installer/"
|
|
|
|
+ "cd-dvd/installation-cd-minimal.nix")
|
2023-12-15 10:15:42 -05:00
|
|
|
{vars.user = "nixos";}
|
|
|
|
];
|
2023-12-01 03:07:17 -05:00
|
|
|
};
|
|
|
|
|
2023-12-08 14:59:44 -05:00
|
|
|
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
|
|
|
|
extraSpecialArgs = inputs;
|
|
|
|
home-manager-path = home-manager.outPath;
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "aarch64-linux";
|
|
|
|
overlays = [
|
|
|
|
nix-on-droid.overlays.default
|
|
|
|
neovim-flake.overlay
|
2024-01-01 02:16:42 -05:00
|
|
|
(import ./common/overlays/dracula-theme inputs)
|
2023-12-08 14:59:44 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
{home-manager.extraSpecialArgs = inputs;}
|
|
|
|
./common/nix-on-droid.nix
|
|
|
|
./devices/android
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-12-03 04:50:17 -05:00
|
|
|
formatter = perSystem (_: pkgs: pkgs.alejandra);
|
2023-12-15 10:15:42 -05:00
|
|
|
|
|
|
|
devShells = perSystem (_: pkgs: {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
|
|
|
alejandra
|
|
|
|
git
|
|
|
|
|
|
|
|
(pkgs.writeShellScriptBin "mkIso" (lib.concatStrings [
|
|
|
|
"nix build $(realpath /etc/nixos)#nixosConfigurations."
|
|
|
|
"live-image.config.system.build.isoImage"
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
2023-12-01 03:07:17 -05:00
|
|
|
};
|
|
|
|
|
2023-09-29 23:46:34 -04:00
|
|
|
inputs = {
|
2023-12-31 15:44:53 -05:00
|
|
|
# Main inputs
|
|
|
|
nixpkgs = {
|
|
|
|
type = "github";
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "nixpkgs";
|
|
|
|
ref = "nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
type = "github";
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "home-manager";
|
|
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-12-05 20:15:27 -05:00
|
|
|
secrets = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "git";
|
|
|
|
url = "ssh://git@git.nelim.org/matt1432/nixos-secrets";
|
|
|
|
|
2023-12-05 20:15:27 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-10-30 10:30:11 -04:00
|
|
|
|
2023-12-08 14:59:44 -05:00
|
|
|
nix-on-droid = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "t184256";
|
|
|
|
repo = "nix-on-droid";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager.follows = "home-manager";
|
|
|
|
};
|
2023-12-08 14:59:44 -05:00
|
|
|
};
|
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
# Overlays
|
|
|
|
nixpkgs-wayland = {
|
|
|
|
type = "github";
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nixpkgs-wayland";
|
|
|
|
};
|
2023-10-11 18:02:04 -04:00
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
nur = {
|
|
|
|
type = "github";
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "NUR";
|
|
|
|
};
|
2023-10-20 11:22:20 -04:00
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
nix-gaming = {
|
|
|
|
type = "github";
|
|
|
|
owner = "fufexan";
|
|
|
|
repo = "nix-gaming";
|
2023-11-28 21:43:26 -05:00
|
|
|
};
|
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
# Oksys inputs
|
2023-11-28 21:43:26 -05:00
|
|
|
headscale = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "juanfont";
|
|
|
|
repo = "headscale";
|
|
|
|
|
2023-11-28 21:43:26 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-11-29 22:15:31 -05:00
|
|
|
};
|
2023-12-31 15:44:53 -05:00
|
|
|
|
2023-11-29 22:15:31 -05:00
|
|
|
caddy-plugins = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "nixos-caddy-cloudflare";
|
|
|
|
|
2023-11-29 22:15:31 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-29 23:46:34 -04:00
|
|
|
};
|
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
# Servivi inputs
|
2023-12-26 17:10:10 -05:00
|
|
|
nms = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "nixos-minecraft-servers";
|
|
|
|
|
2023-12-26 17:10:10 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
# Desktop inputs
|
2023-11-20 12:16:13 -05:00
|
|
|
hyprland = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "hyprwm";
|
|
|
|
repo = "Hyprland";
|
|
|
|
|
2023-11-20 12:16:13 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-31 15:44:53 -05:00
|
|
|
|
2023-09-29 23:46:34 -04:00
|
|
|
hyprgrass = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "horriblename";
|
|
|
|
repo = "hyprgrass";
|
|
|
|
|
2023-09-29 23:46:34 -04:00
|
|
|
inputs.hyprland.follows = "hyprland";
|
|
|
|
};
|
|
|
|
|
2023-10-11 18:02:04 -04:00
|
|
|
ags = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "Aylur";
|
|
|
|
repo = "ags";
|
|
|
|
|
2023-10-11 18:02:04 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
# Neovim inputs
|
2023-10-30 10:30:11 -04:00
|
|
|
neovim-flake = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "neovim-nightly-overlay";
|
|
|
|
|
2023-11-19 15:09:57 -05:00
|
|
|
# to make sure plugins and nvim have same binaries
|
2023-10-26 00:35:24 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-31 15:44:53 -05:00
|
|
|
|
2023-11-26 01:15:55 -05:00
|
|
|
coc-stylelintplus-flake = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "coc-stylelintplus";
|
|
|
|
|
2023-10-26 20:47:49 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-31 15:44:53 -05:00
|
|
|
|
2023-11-26 01:15:55 -05:00
|
|
|
tree-sitter-hypr-flake = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "luckasRanarison";
|
|
|
|
repo = "tree-sitter-hypr";
|
|
|
|
|
2023-11-25 23:55:08 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-11-19 15:09:57 -05:00
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
# Nix tools
|
|
|
|
nurl = {
|
|
|
|
type = "github";
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nurl";
|
|
|
|
};
|
2023-11-22 14:36:42 -05:00
|
|
|
|
2023-12-01 03:07:17 -05:00
|
|
|
nix-index-db = {
|
2023-12-31 15:44:53 -05:00
|
|
|
type = "github";
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "nix-index-database";
|
|
|
|
|
2023-11-22 14:36:42 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-31 15:44:53 -05:00
|
|
|
|
|
|
|
# FIXME: these prevent from using nixos-install
|
|
|
|
nh = {
|
|
|
|
type = "github";
|
|
|
|
owner = "viperML";
|
|
|
|
repo = "nh";
|
|
|
|
};
|
|
|
|
|
|
|
|
nix-melt = {
|
|
|
|
type = "github";
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nix-melt";
|
|
|
|
};
|
|
|
|
|
|
|
|
# -= Non-flake inputs =-
|
|
|
|
|
|
|
|
## Custom packages
|
|
|
|
trash-d-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "rushsteve1";
|
|
|
|
repo = "trash-d";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
pam-fprint-grosshack-src = {
|
|
|
|
type = "gitlab";
|
|
|
|
owner = "mishakmak";
|
|
|
|
repo = "pam-fprint-grosshack";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
pokemon-colorscripts-src = {
|
|
|
|
type = "gitlab";
|
|
|
|
owner = "phoneybadger";
|
|
|
|
repo = "pokemon-colorscripts";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
## Overlays
|
|
|
|
plymouth-src = {
|
|
|
|
type = "gitlab";
|
|
|
|
host = "gitlab.freedesktop.org";
|
|
|
|
owner = "plymouth";
|
|
|
|
repo = "plymouth";
|
|
|
|
|
|
|
|
# https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/236
|
|
|
|
# Last commit that works
|
|
|
|
rev = "58cc9f84e456ab0510b13d7bdbc13697467ca7be";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
spotifywm-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "dasJ";
|
|
|
|
repo = "spotifywm";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpu-screen-recorder-src = {
|
|
|
|
type = "git";
|
|
|
|
url = "https://repo.dec05eba.com/gpu-screen-recorder";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2024-01-01 17:34:49 -05:00
|
|
|
# MPV scripts
|
|
|
|
modernx-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "cyl0";
|
|
|
|
repo = "ModernX";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
persist-properties-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "d87";
|
|
|
|
repo = "mpv-persist-properties";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
pointer-event-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "christoph-heinrich";
|
|
|
|
repo = "mpv-pointer-event";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
touch-gestures-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "christoph-heinrich";
|
|
|
|
repo = "mpv-touch-gestures";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
eisa-scripts-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "Eisa01";
|
|
|
|
repo = "mpv-scripts";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
## Dracula src
|
|
|
|
bat-theme-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "matt1432";
|
|
|
|
repo = "bat";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
git-theme-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "git";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
gtk-theme-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "gtk";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
plymouth-theme-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "plymouth";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
xresources-theme-src = {
|
|
|
|
type = "github";
|
|
|
|
owner = "dracula";
|
|
|
|
repo = "xresources";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-09-29 23:46:34 -04:00
|
|
|
};
|
|
|
|
}
|