/ flake.nix
flake.nix
1 let 2 combinedManager = import (builtins.fetchTarball { 3 url = "https://github.com/flafydev/combined-manager/archive/71d2bc7553b59f69315328ba31531ffdc8c3ded2.tar.gz"; 4 sha256 = "sha256:0dkjcy3xknncl4jv0abqhqspnk91hf6ridb5xb7da5f29xn60mnf"; 5 }); 6 in 7 combinedManager.mkFlake { 8 description = "yet another another flake oml"; 9 10 lockFile = ./flake.lock; 11 12 initialInputs = { 13 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 14 home-manager = { 15 url = "github:nix-community/home-manager"; 16 inputs.nixpkgs.follows = "nixpkgs"; 17 }; 18 flake-parts.url = "github:hercules-ci/flake-parts"; 19 devshell.url = "github:numtide/devshell"; 20 }; 21 22 configurations = { 23 Aethyr = { 24 system = "x86_64-linux"; 25 modules = [ 26 ./modules 27 ./hosts/Aethyr 28 ./configs/dennkaii 29 ]; 30 }; 31 }; 32 33 outputs = inputs @ {flake-parts, ...}: 34 flake-parts.lib.mkFlake {inherit inputs;} { 35 imports = [ 36 inputs.devshell.flakeModule 37 ]; 38 systems = [ 39 "x86_64-linux" 40 ]; 41 perSystem = {pkgs, ...}: { 42 formatter = pkgs.alejandra; 43 44 devshells.start_page = { 45 env = [ 46 { 47 name = "HTTP_PORT"; 48 value = 3000; 49 } 50 ]; 51 commands = [ 52 { 53 help = "Install dependencies"; 54 name = "yarn-install"; 55 command = "yarn"; 56 } 57 ]; 58 packages = with pkgs; [ 59 nodejs_21 60 yarn 61 ]; 62 }; 63 64 # pkgs = import ./pkgs {inherit pkgs;}; 65 }; 66 }; 67 } 68 # TOOK as reference 69 # https://github.com/n3oney/nixus/blob/main/flake.nix 70 # https://github.com/FlafyDev/nixos-config/blob/main/flake.nix 71