2024-01-03 22:53:34 -03:00
|
|
|
{
|
|
|
|
|
description = "Nixos config flake";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-12 17:45:22 -03:00
|
|
|
sops-nix = {
|
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-09 19:57:06 -03:00
|
|
|
nix-index-database = {
|
|
|
|
|
url = "github:Mic92/nix-index-database";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-06 22:06:26 -03:00
|
|
|
# Declaratively install flatpaks
|
2024-01-09 16:52:28 -03:00
|
|
|
flatpaks.url = "github:gmodena/nix-flatpak"; # Fork is being used until #24 merges
|
|
|
|
|
# flatpaks.url = "github:Tomaszal/nix-flatpak/feature/overrides";
|
2024-01-05 19:49:31 -03:00
|
|
|
|
|
|
|
|
# Used for theming the OS, see modules/home-manager/theme.nix
|
|
|
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
|
|
|
|
|
2024-01-13 18:58:54 -03:00
|
|
|
firefox-addons = {
|
|
|
|
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-05 19:49:55 -03:00
|
|
|
# Necessary for modules/home-manager/programs/tmux.nix
|
|
|
|
|
tmux-plugin-manager = {
|
|
|
|
|
url = "github:tmux-plugins/tpm";
|
|
|
|
|
flake = false;
|
|
|
|
|
};
|
2024-01-15 14:40:08 -03:00
|
|
|
|
2024-06-05 00:40:35 -03:00
|
|
|
rec-sh.url = "git+file:///home/guz/.projects/dot013/rec.sh";
|
2024-05-26 18:42:38 -03:00
|
|
|
|
2024-06-05 02:04:33 -03:00
|
|
|
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
|
|
|
|
|
2024-05-21 14:55:23 -03:00
|
|
|
# hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
|
|
|
# Temp version pin because of issue https://github.com/hyprwm/Hyprland/issues/6132
|
2024-05-26 18:41:22 -03:00
|
|
|
# hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&rev=cba1ade848feac44b2eda677503900639581c3f4";
|
|
|
|
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
2024-01-15 14:40:08 -03:00
|
|
|
xdg-desktop-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
|
|
|
|
|
/*
|
2024-04-08 16:37:29 -03:00
|
|
|
Note to self:
|
|
|
|
|
The last commit with working screen share, as the time of writing this, was
|
|
|
|
|
https://github.com/hyprwm/xdg-desktop-portal-hyprland/commit/6a5de92769d5b7038134044053f90e7458f6a197
|
|
|
|
|
https://github.com/hyprwm/Hyprland/commit/3c964a9fdc220250a85b1c498e5b6fad9390272f
|
|
|
|
|
so if needed, you can always roll-back.
|
2024-01-15 14:40:08 -03:00
|
|
|
|
2024-04-08 16:37:29 -03:00
|
|
|
Fuck discord.
|
2024-01-15 14:40:08 -03:00
|
|
|
*/
|
2024-01-03 22:53:34 -03:00
|
|
|
};
|
|
|
|
|
|
2024-04-08 16:37:29 -03:00
|
|
|
outputs = {
|
|
|
|
|
self,
|
|
|
|
|
nixpkgs,
|
|
|
|
|
home-manager,
|
|
|
|
|
...
|
|
|
|
|
} @ inputs: let
|
|
|
|
|
create-host = configs:
|
|
|
|
|
builtins.listToAttrs (map
|
2024-01-07 15:45:18 -03:00
|
|
|
(c: {
|
|
|
|
|
name = c;
|
|
|
|
|
value = nixpkgs.lib.nixosSystem {
|
2024-04-08 16:37:29 -03:00
|
|
|
specialArgs = {inherit inputs;};
|
2024-01-07 15:45:18 -03:00
|
|
|
modules = [
|
|
|
|
|
inputs.home-manager.nixosModules.default
|
2024-04-08 16:37:29 -03:00
|
|
|
(./. + ("/hosts/" + builtins.replaceStrings ["@"] ["/"] c) + /configuration.nix)
|
2024-01-07 15:45:18 -03:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
})
|
2024-04-08 16:37:29 -03:00
|
|
|
configs);
|
|
|
|
|
in {
|
|
|
|
|
nixosConfigurations = create-host [
|
2024-04-10 13:02:00 -03:00
|
|
|
"battleship"
|
2024-04-22 09:34:14 -03:00
|
|
|
"cruiser"
|
2024-04-19 15:13:15 -03:00
|
|
|
"spacestation"
|
2024-04-08 16:37:29 -03:00
|
|
|
];
|
|
|
|
|
};
|
2024-01-03 22:53:34 -03:00
|
|
|
}
|