Fixing Hyprland crash
This commit is contained in:
90
flake.nix
90
flake.nix
@ -16,45 +16,77 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
nix-colors.url = "github:misterio77/nix-colors";
|
||||
|
||||
snowfall-lib = {
|
||||
url = "github:snowfallorg/lib";
|
||||
hyprland = {
|
||||
url = "github:hyprwm/Hyprland";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs-stable.follows = "nixpkgs";
|
||||
};
|
||||
nix-colors.url = "github:misterio77/nix-colors";
|
||||
|
||||
};
|
||||
|
||||
outputs = inputs:
|
||||
|
||||
let
|
||||
lib = inputs.snowfall-lib.mkLib {
|
||||
inherit inputs;
|
||||
src = ./.;
|
||||
gen = import ./generator.nix { inherit inputs; };
|
||||
forEachSystem =
|
||||
inputs.nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ];
|
||||
|
||||
in {
|
||||
|
||||
devShells = forEachSystem (system:
|
||||
let
|
||||
overlays = import ./pkgs/overlay.nix { inherit pkgs; };
|
||||
overrides = { custom = import ./pkgs { inherit pkgs; }; };
|
||||
pkgs = import inputs.nixpkgs { inherit system overlays; }
|
||||
// overrides;
|
||||
in { default = import ./shells/vevsh { inherit pkgs; }; });
|
||||
|
||||
nixosConfigurations = {
|
||||
valinor = gen.generate {
|
||||
type = "nixos";
|
||||
system = "x86_64-linux";
|
||||
host = "valinor";
|
||||
};
|
||||
iriy = gen.generate {
|
||||
type = "nixos";
|
||||
system = "x86_64-linux";
|
||||
host = "iriy";
|
||||
};
|
||||
efir = gen.generate {
|
||||
type = "nixos";
|
||||
system = "x86_64-linux";
|
||||
host = "efir";
|
||||
};
|
||||
avalon = gen.generate {
|
||||
type = "nixos";
|
||||
system = "x86_64-linux";
|
||||
host = "avalon";
|
||||
};
|
||||
|
||||
};
|
||||
in lib.mkFlake {
|
||||
|
||||
package-namespace = "custom";
|
||||
|
||||
channels-config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [ ];
|
||||
};
|
||||
|
||||
systems = {
|
||||
modules = {
|
||||
darwin = with inputs; [ sops-nix.nixosModules.sops ];
|
||||
|
||||
home = with inputs; [
|
||||
nix-colors.homeManagerModules
|
||||
hyprland.homeManagerModules
|
||||
];
|
||||
|
||||
nixos = with inputs; [ sops-nix.nixosModules.sops ];
|
||||
darwinConfigurations = {
|
||||
asgard = gen.generate {
|
||||
type = "macos";
|
||||
system = "x86_64-darwin";
|
||||
host = "asgard";
|
||||
};
|
||||
};
|
||||
homeConfigurations = {
|
||||
yomi = gen.generate {
|
||||
type = "home";
|
||||
system = "arm-64";
|
||||
host = "example";
|
||||
};
|
||||
example = gen.generate {
|
||||
type = "home";
|
||||
system = "-"; # supports any
|
||||
host = "example";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# ===== Unsupported/NotImplemented ======
|
||||
|
Reference in New Issue
Block a user