87 lines
2.1 KiB
Nix
87 lines
2.1 KiB
Nix
{
|
|
|
|
description= "My flake";
|
|
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
zen-browser = {
|
|
url = "github:0xc000022070/zen-browser-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
auto-cpufreq = {
|
|
url = "github:AdnanHodzic/auto-cpufreq";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
stylix = {
|
|
url = "github:nix-community/stylix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
termius = {
|
|
url = "github:NixOS/nixpkgs/e44b8dc0882d66e2627a8ff252b04a22f4a629fd";
|
|
};
|
|
vicinae = {
|
|
url = "github:vicinaehq/vicinae";
|
|
};
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
};
|
|
nix-software-center = {
|
|
url = "github:snowfallorg/nix-software-center";
|
|
};
|
|
awww = {
|
|
url = "git+https://codeberg.org/LGFae/awww";
|
|
};
|
|
};
|
|
|
|
|
|
outputs = { self, nixpkgs, home-manager, stylix, termius, vicinae, ... }@inputs:
|
|
let
|
|
lib = nixpkgs.lib;
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
pkgsTermius = import termius {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
in {
|
|
devShells.${system}.default = (import ./shell.nix { inherit pkgs; });
|
|
nixosConfigurations = {
|
|
nixos = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs pkgsTermius; };
|
|
modules = [
|
|
./configuration.nix
|
|
stylix.nixosModules.stylix
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
jose = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
modules = [ ./home.nix
|
|
vicinae.homeManagerModules.default
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
nixConfig = {
|
|
extra-substituters = [
|
|
"https://vicinae.cachix.org"
|
|
];
|
|
extra-trusted-public-keys = [
|
|
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
|
|
];
|
|
};
|
|
|
|
}
|