nixnew/flake.nix

69 lines
1.7 KiB
Nix
Raw Normal View History

2023-06-20 04:08:11 +00:00
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
stable.url = "nixpkgs/nixos-23.05";
2023-06-27 22:37:18 +00:00
flake-utils.url = "github:numtide/flake-utils";
2023-06-20 04:08:11 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-06-22 08:04:50 +00:00
2023-06-27 22:37:18 +00:00
emacs-overlay = {
url = "github:nix-community/emacs-overlay?rev=b7a065e692e944e6b68d4285013ca426a8de6663";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
2023-06-22 08:04:50 +00:00
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-hy3 = {
url = "github:outfoxxed/hy3";
inputs.hyprland.follows = "hyprland";
};
hyprpaper = {
url = "github:hyprwm/Hyprpaper";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-06-23 07:43:29 +00:00
2023-06-28 06:14:30 +00:00
ironbar = {
url = "github:JakeStanger/ironbar";
inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-overlay.follows = "rust-overlay";
};
2023-06-27 04:16:43 +00:00
nur.url = "github:nix-community/NUR";
2023-06-23 07:43:29 +00:00
# devenv
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
2023-06-27 22:37:18 +00:00
inputs.flake-utils.follows = "flake-utils";
2023-06-23 07:43:29 +00:00
};
2023-06-20 04:08:11 +00:00
};
outputs = inputs @ { self, nixpkgs, ... }: {
nixosConfigurations = {
lenovo = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { inherit system inputs; };
modules = [
2023-06-21 01:08:53 +00:00
(import ./modules/impurity.nix self)
./modules/preserve-system.nix
2023-06-23 07:43:29 +00:00
./modules/devenv
2023-06-21 06:47:58 +00:00
./modules/system.nix
2023-06-22 08:04:50 +00:00
./modules/hyprland
2023-06-21 10:52:24 +00:00
./systems/lenovo
2023-06-20 04:08:11 +00:00
];
};
2023-06-21 01:08:53 +00:00
lenovo-impure = self.nixosConfigurations.lenovo.extendModules { modules = [ { impurity.enable = true; } ]; };
2023-06-20 04:08:11 +00:00
};
};
}