chore: format flake.nix

This commit is contained in:
Mohammad Rafiq 2025-03-01 05:13:07 +08:00
parent a040a98fee
commit 8139070d69

View file

@ -7,20 +7,19 @@
home-manager, home-manager,
nvf, nvf,
... ...
} @ inputs: } @ inputs: let
let args = {inherit self inputs;};
args = { inherit self inputs; }; in {
in
{
# System Configurations # System Configurations
nixosConfigurations = { nixosConfigurations = {
nemesis = nixpkgs.lib.nixosSystem { nemesis = nixpkgs.lib.nixosSystem {
specialArgs = args; specialArgs = args;
modules = [ modules = [
./systems/nemesis.nix ./systems/nemesis.nix
# Add the home-manager user # Add the home-manager user
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager
{
# Don't instantiate the home-manager instance of nixpkgs # Don't instantiate the home-manager instance of nixpkgs
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
# Install user packages to /etc/profiles # Install user packages to /etc/profiles
@ -37,15 +36,17 @@
}; };
# Packages # Packages
packages.x86_64-linux.nvf = (inputs.nvf.lib.neovimConfiguration { packages.x86_64-linux.nvf =
pkgs = nixpkgs.legacyPackages.x86_64-linux; (inputs.nvf.lib.neovimConfiguration {
modules = [ ./packages/nvf.nix ]; pkgs = nixpkgs.legacyPackages.x86_64-linux;
}).neovim; modules = [./packages/nvf.nix];
})
.neovim;
}; };
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";