refactor(flake): reduce lines for inputs

This commit is contained in:
Moritz Böhme 2023-03-13 21:16:40 +01:00
parent 2df38d379d
commit 00468fd9f8
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

120
flake.nix
View file

@ -14,85 +14,59 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
utils = { utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
url = "github:gytis-ivaskevicius/flake-utils-plus"; utils.inputs.flake-utils.follows = "flake-utils";
inputs.flake-utils.follows = "flake-utils";
};
agenix = { agenix.url = "github:ryantm/agenix";
url = "github:ryantm/agenix"; agenix.inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = { home-manager.url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.utils.follows = "flake-utils";
inputs.utils.follows = "flake-utils";
};
# Zsh specific # Zsh specific
forgit-git = { forgit-git.url = "github:wfxr/forgit";
url = "github:wfxr/forgit"; forgit-git.flake = false;
flake = false;
};
# Laptop Touchpad # Laptop Touchpad
asus-touchpad-numpad-driver = { asus-touchpad-numpad-driver.url = "github:MoritzBoehme/asus-touchpad-numpad-driver/german-layout";
url = "github:MoritzBoehme/asus-touchpad-numpad-driver/german-layout"; asus-touchpad-numpad-driver.flake = false;
flake = false;
};
arkenfox-userjs = { arkenfox-userjs.url = "github:arkenfox/user.js";
url = "github:arkenfox/user.js"; arkenfox-userjs.flake = false;
flake = false;
};
howdy = { howdy.url = "sourcehut:~moritzboehme/howdy";
url = "sourcehut:~moritzboehme/howdy"; howdy.inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs.url = "git+ssh://git@gitea.moritzboeh.me/moritz/emacs.git?ref=main"; emacs.url = "git+ssh://git@gitea.moritzboeh.me/moritz/emacs.git?ref=main";
neovim.url = "github:neovim/neovim?dir=contrib"; neovim.url = "github:neovim/neovim?dir=contrib";
nil = { nil.url = "github:oxalica/nil";
url = "github:oxalica/nil"; nil.inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs"; nil.inputs.flake-utils.follows = "flake-utils";
inputs.flake-utils.follows = "flake-utils";
};
# Hyprland # Hyprland
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
hyprpaper.url = "github:hyprwm/hyprpaper"; hyprpaper.url = "github:hyprwm/hyprpaper";
hypr-contrib.url = "github:hyprwm/contrib"; hypr-contrib.url = "github:hyprwm/contrib";
nvim-treesitter-textsubjects = { nvim-treesitter-textsubjects.url = "github:RRethy/nvim-treesitter-textsubjects";
url = "github:RRethy/nvim-treesitter-textsubjects"; nvim-treesitter-textsubjects.flake = false;
flake = false;
};
smartcolumn-nvim = { smartcolumn-nvim.url = "github:m4xshen/smartcolumn.nvim";
url = "github:m4xshen/smartcolumn.nvim"; smartcolumn-nvim.flake = false;
flake = false;
};
copilot-lua = { copilot-lua.url = "github:zbirenbaum/copilot.lua";
url = "github:zbirenbaum/copilot.lua"; copilot-lua.flake = false;
flake = false;
};
lspsaga-nvim = { lspsaga-nvim.url = "github:glepnir/lspsaga.nvim";
url = "github:glepnir/lspsaga.nvim"; lspsaga-nvim.flake = false;
flake = false;
};
attic = { attic.url = "github:zhaofengli/attic";
url = "github:zhaofengli/attic"; attic.inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs"; attic.inputs.nixpkgs-stable.follows = "stable";
inputs.nixpkgs-stable.follows = "stable"; attic.inputs.flake-utils.follows = "flake-utils";
inputs.flake-utils.follows = "flake-utils";
};
}; };
outputs = outputs =
@ -140,23 +114,23 @@
./modules/profiles/gaming.nix ./modules/profiles/gaming.nix
./modules/profiles/desktop.nix ./modules/profiles/desktop.nix
]; ];
hostDefaults = {
modules = [ hostDefaults.modules = [
./modules/default.nix ./modules/default.nix
self.nixosModules.base self.nixosModules.base
inputs.home-manager.nixosModule inputs.home-manager.nixosModule
{ {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { inherit inputs self; }; extraSpecialArgs = { inherit inputs self; };
}; };
} }
inputs.hyprland.nixosModules.default inputs.hyprland.nixosModules.default
inputs.agenix.nixosModules.age inputs.agenix.nixosModules.age
inputs.howdy.nixosModules.default inputs.howdy.nixosModules.default
]; ];
};
hosts.nixos-laptop.modules = [ hosts.nixos-laptop.modules = [
./hosts/nixos-laptop ./hosts/nixos-laptop