Files
HyprNix/flake.nix
2025-11-10 12:36:13 +01:00

49 lines
1.5 KiB
Nix

{
description = "Hyprland NixOS Flake";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nixos-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, quickshell, ... }@inputs:
let
systemSettings = {
system = "x86_64-linux";
hostname = "sn0wfl4k3";
timezone = "Europe/Berlin";
locale = "en_US.UTF-8";
kbLayout = "us";
username = "zer0day";
};
homeSettings = {
dotfilesDir = "~/.flake"
};
lib = nixpkgs.lib;
pkgs = inputs.nixpkgs.legacyPackages.${systemSettings.system};
in {
nixosConfigurations = {
default = lib.nixosSystem {
modules = [ ( ./. + "/configuration.nix" ) ];
specialArgs = { inherit systemSettings };
};
};
homeConfigurations = {
zer0day = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ( ./. + "/home.nix" ) ];
extraSpecialArgs = { inherit homeSettings };
};
};
};
}