linuxware/flake.nix

68 lines
1.7 KiB
Nix
Raw Normal View History

2023-11-05 04:53:31 -03:00
{
description = "NixOS System Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-01-20 11:26:46 -03:00
hardware.url = "github:NixOS/nixos-hardware/master";
2023-11-05 04:53:31 -03:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-01-04 22:14:17 -03:00
hyprland-hyprfocus = {
url = "github:VortexCoyote/hyprfocus";
inputs.hyprland.follows = "hyprland";
};
2024-01-12 17:01:45 -03:00
# My neovim configuration using nixvim.
custom-neovim.url = "github:wizardlink/neovim";
2023-11-05 04:53:31 -03:00
};
outputs =
{ self
2024-01-20 11:26:46 -03:00
, hardware
, home-manager
, hyprland
2024-01-20 11:26:46 -03:00
, nixpkgs
, ...
}@inputs: {
nixosConfigurations.nixos =
let
system = "x86_64-linux";
modules = [
./nixos.nix
2024-01-20 11:26:46 -03:00
hardware.nixosModules.common-cpu-amd
hardware.nixosModules.common-gpu-amd
hardware.nixosModules.common-pc
hardware.nixosModules.common-pc-hdd
hardware.nixosModules.common-pc-ssd
hyprland.nixosModules.default
{
programs.hyprland.enable = true;
}
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.users.wizardlink = import ./home-manager.nix;
}
];
in
2023-11-05 04:53:31 -03:00
nixpkgs.lib.nixosSystem { inherit system modules; };
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
};
2023-11-05 04:53:31 -03:00
}