59 lines
1.5 KiB
Nix
59 lines
1.5 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
hyprlock = {
|
|
url = "github:hyprwm/hyprlock";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hypridle = {
|
|
url = "github:hyprwm/hypridle";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
ghostty = {
|
|
url = "git+ssh://git@github.com/mitchellh/ghostty.git";
|
|
# url = "git+ssh://git@github.com:mitchellh/ghostty";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ghostty, hyprland, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
default = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
hyprland.nixosModules.default
|
|
./hosts/default/configuration.nix
|
|
{
|
|
environment.systemPackages = [
|
|
ghostty.packages.x86_64-linux.default
|
|
];
|
|
}
|
|
];
|
|
};
|
|
gamemachine = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/gamemachine/configuration.nix
|
|
./modules/nvidia.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|