mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-11 18:18:37 +02:00
51 lines
1.6 KiB
Nix
51 lines
1.6 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; # used for some packages
|
|
nixos-grub-themes.url = "github:jeslie0/nixos-grub-themes";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
caelestia-shell = {
|
|
# based on quickshell. See https://github.com/caelestia-dots/shell
|
|
url = "github:caelestia-dots/shell";
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
};
|
|
microPlugins-vivify = {
|
|
url = "git+https://codeberg.org/gibbert/micro-vivify";
|
|
flake = false;
|
|
};
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
};
|
|
import-tree.url = "github:vic/import-tree"; # imports ./modules recursively
|
|
};
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
flake-parts.lib.mkFlake {inherit inputs;}
|
|
({
|
|
flake = let
|
|
system = "x86_64-linux";
|
|
unfreePkgs = [
|
|
"hplip"
|
|
"vivify.vim"
|
|
"cheatsheet.nvim"
|
|
];
|
|
mkUnfreePredicate = pkg:
|
|
builtins.elem (inputs.nixpkgs.lib.getName pkg) unfreePkgs;
|
|
mkPkgs = nixpkgsInput:
|
|
import nixpkgsInput {
|
|
inherit system;
|
|
config.allowUnfreePredicate = mkUnfreePredicate;
|
|
};
|
|
pkgs = mkPkgs inputs.nixpkgs;
|
|
pkgs-unstable = mkPkgs inputs.nixpkgs-unstable;
|
|
in {
|
|
inherit pkgs pkgs-unstable;
|
|
};
|
|
}
|
|
// (inputs.import-tree ./modules));
|
|
}
|