Update dist-nix

This commit is contained in:
clsty
2025-10-30 22:18:42 +08:00
parent fceda9bd35
commit e622928d9d
5 changed files with 102 additions and 76 deletions
+41
View File
@@ -0,0 +1,41 @@
# flake.nix
{
description = "illogical-impulse";
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
};
nixgl.url = "github:nix-community/nixGL";
};
outputs = { nixpkgs, home-manager, nixgl, ... }:
let
home_attrs = rec {
username = import ./username.nix;
homeDirectory = "/home/${username}";
stateVersion = "25.05";
};
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = import nixpkgs {
inherit system;
};
in {
homeConfigurations = {
illogical_impulse = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit nixgl home_attrs; };
modules = [
./home.nix
];
};
};
};
}