-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
66 lines (63 loc) · 2.23 KB
/
Copy pathflake.nix
File metadata and controls
66 lines (63 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
description = "Zach Latta • NixOS configs (flake-style)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
# Hyprland and related tools
hyprland = {
url = "github:hyprwm/Hyprland";
# inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
hyprpaper = {
url = "github:hyprwm/hyprpaper";
# inputs.nixpkgs.follows = "nixpkgs";
};
hyprlock = {
url = "github:hyprwm/hyprlock";
# inputs.nixpkgs.follows = "nixpkgs";
};
hypridle = {
url = "github:hyprwm/hypridle";
# inputs.nixpkgs.follows = "nixpkgs";
};
# For home-manager integration
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; # Ensure it uses the same nixpkgs
};
};
outputs = { self, nixpkgs, flake-utils, home-manager, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
in {
# Expose your custom packages for ad-hoc `nix run .#logbook` etc.
packages = rec {
logbook = pkgs.callPackage ./pkgs/custom/logbook { };
typora = pkgs.callPackage ./pkgs/typora { };
lg-client = pkgs.callPackage ./pkgs/looking-glass-client-git { };
bibata-hyprcursor = pkgs.callPackage ./pkgs/bibata-hyprcursor {
# variant = "modern";
# colorName = "classic";
};
default = logbook; # `nix run` picks this one
};
})
// {
# ---- NixOS -----------------------------------------------------------
nixosConfigurations.mew = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./mew/configuration.nix # the host config you already have
home-manager.nixosModules.home-manager # Add home-manager module
];
# Pass flake inputs to your modules
specialArgs = { inherit inputs; }; # Pass all inputs
};
};
}