Files
nixos/flake.nix
T
2025-07-22 16:56:09 +01:00

73 lines
1.9 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 = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
hyprsunset = {
url = "github:hyprwm/hyprsunset";
inputs.nixpkgs.follows = "hyprland";
};
hyprsysteminfo = {
url = "github:hyprwm/hyprsysteminfo";
inputs.nixpkgs.follows = "hyprland";
};
};
outputs = { self, nixpkgs, hyprland, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
defaultCfg = rec {
username = "liamm";
homeDirectory = "/home/${username}";
runtimeRoot = "${homeDirectory}/personal/nixos";
context = self;
};
in
{
nixosConfigurations = {
nixpkgs.overlays = [
(final: prev: {
hyprlandPlugins = prev.hyprlandPlugins // {
hyprexpo = inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo;
};
})
];
darp8 = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs; cfg = defaultCfg; };
modules = [
hyprland.nixosModules.default
./hosts/darp8/configuration.nix
{
environment.systemPackages = [
];
}
];
};
desktop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; cfg = defaultCfg; };
modules = [
hyprland.nixosModules.default
./hosts/desktop/configuration.nix
{
environment.systemPackages = [
];
}
];
};
};
};
}