Files
nixos-conf/flake.nix
2026-06-02 20:21:32 +02:00

54 lines
1.6 KiB
Nix

{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin.url = "github:catppuccin/nix";
# IMPORTANT
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
};
outputs = { nixpkgs, nixpkgs-stable, home-manager, zen-browser, catppuccin, nix-cachyos-kernel, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs-stable = import nixpkgs { system = "${system}"; config.allowUnfree = true; };
in {
nixosConfigurations = {
peceli = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit pkgs-stable;
};
modules = [
./configuration.nix
catppuccin.nixosModules.catppuccin
({pkgs, ...}: {
environment.systemPackages = [
zen-browser.packages.${system}.default
];
nixpkgs.overlays = [
nix-cachyos-kernel.overlays.default
nix-cachyos-kernel.overlays.pinned
];
})
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
];
};
};
};
}