You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
{
description = " b a n a n a n e t . w o r k S e r v e r & D e p l o y m e n t C o n t r o l l e r e n v i r o n m e n t " ;
inputs = {
# packages repositories
nixpkgs . url = " g i t h u b : n i x o s / n i x p k g s / n i x o s - 2 4 . 0 5 " ;
nixpkgs_unstable . url = " g i t h u b : n i x o s / n i x p k g s / n i x o s - u n s t a b l e " ;
# required submodules
home-manager = {
url = " g i t h u b : n i x - c o m m u n i t y / h o m e - m a n a g e r " ;
inputs . nixpkgs . follows = " n i x p k g s " ;
} ;
impermanence . url = " g i t h u b : n i x - c o m m u n i t y / i m p e r m a n e n c e " ;
} ;
outputs = { self , . . . } @ inputs :
let
inherit ( self ) outputs ;
# constants
system = " x 8 6 _ 6 4 - l i n u x " ;
# package repositories
pkgs = import inputs . nixpkgs { inherit system ; } ;
pkgs_unstable = import inputs . nixpkgs_unstable { inherit system ; } ;
in
{
nixosModules = {
# this one includes all of my modules
# - most of them only change things when enabled (e.g. x-banananetwork.*.enable)
# - others only introduce small, reasonable changes if other module’ s options are set, as reasonable defaults (if I intend to upstream them)
# however, use on your own discretion
banananetwork = import ./nix/nixos-modules ;
# this one also includes required dependencies from flake inputs
withDepends = {
imports = [
inputs . home-manager . nixosModules . home-manager
inputs . impermanence . nixosModules . impermanence
outputs . nixosModules . banananetwork
] ;
} ;
} ;
devShells . " ${ system } " . default =
let
pkgs = pkgs_unstable ;
in
pkgs . mkShell
{
packages = with pkgs ; [
curl
rsync
opentofu
terranix
] ;
} ;
} ;
}