mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 05:36:11 +01:00
118 lines
3.1 KiB
Nix
118 lines
3.1 KiB
Nix
{
|
|
description = "Mike's Flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-24.11";
|
|
unstable.url = "nixpkgs/nixos-unstable";
|
|
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
|
nur.url = "github:nix-community/NUR";
|
|
nix-alien.url = "github:thiagokokada/nix-alien";
|
|
zen-browser.url = "github:eRgo35/zen-browser-flake";
|
|
rosepine-kvantum.url = "github:eRgo35/RosePine-Kvantum";
|
|
|
|
hyprsunset.url = "github:hyprwm/hyprsunset";
|
|
hyprsysteminfo.url = "github:/hyprwm/hyprsysteminfo";
|
|
hyprpolkitagent.url = "github:hyprwm/hyprpolkitagent";
|
|
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland = {
|
|
type = "git";
|
|
url = "https://github.com/hyprwm/Hyprland";
|
|
submodules = true;
|
|
};
|
|
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
split-monitor-workspaces = {
|
|
url = "github:Duckonaut/split-monitor-workspaces";
|
|
inputs.hyprland.follows = "hyprland"; # <- make sure this line is present for the plugin to work as intended
|
|
};
|
|
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.pre-commit-hooks-nix.follows = "";
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
spicetify-nix = {
|
|
url = "github:Gerg-L/spicetify-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
stylix = {
|
|
url = "github:danth/stylix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
unstable,
|
|
home-manager,
|
|
...
|
|
} @ inputs: let
|
|
inherit (self) outputs;
|
|
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
in {
|
|
# Your custom packages
|
|
# Accessible through 'nix build', 'nix shell', etc
|
|
# packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
|
|
# Formatter for your nix files, available through 'nix fmt'
|
|
# Other options beside 'alejandra' include 'nixpkgs-fmt'
|
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
|
|
|
# Your custom packages and modifications, exported as overlays
|
|
overlays = import ./overlays {inherit inputs;};
|
|
|
|
# NixOS configuration entrypoint
|
|
# Available through 'nixos-rebuild --flake .#hostname'
|
|
nixosConfigurations = {
|
|
zion = nixpkgs.lib.nixosSystem {
|
|
modules = [./hosts];
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
username = "mike";
|
|
hostname = "zion";
|
|
};
|
|
};
|
|
|
|
thor = nixpkgs.lib.nixosSystem {
|
|
modules = [./hosts];
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
username = "mike";
|
|
hostname = "thor";
|
|
};
|
|
};
|
|
|
|
server = nixpkgs.lib.nixosSystem {
|
|
modules = [./hosts];
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
username = "mike";
|
|
hostname = "server";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|