{ description = "Nixos config flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; sops-nix = { url = "github:Mic92/sops-nix"; }; nix-index-database.url = "github:nix-community/nix-index-database"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-stable.url = "github:nixos/nixpkgs/nixos-24.05"; nixos-wsl = { url = "github:nix-community/nixos-wsl"; inputs.nixpkgs.follows = "nix-stable"; }; stylix-stable = { url = "github:danth/stylix/release-24.05"; inputs.nixpkgs.follows = "nix-stable"; }; home-manager-stable = { url = "github:nix-community/home-manager/release-24.05"; inputs.nixpkgs.follows = "nix-stable"; }; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; scripts = { inputs.scripts.follows = "nixpkgs"; url = "github:sadan4/scripts"; }; stylix = { url = "github:danth/stylix"; inputs.nixpkgs.follows = "nixpkgs"; }; chrome-pak = { url = "git+file:./customPackages/chrome-pak-customizer"; flake = false; }; ceserver = { url = "git+file:./customPackages/ceserver"; flake = false; }; flake-parts.url = "github:hercules-ci/flake-parts"; nix-alien.url = "https://flakehub.com/f/thiagokokada/nix-alien/0.1.384.tar.gz"; }; outputs = { self, nixpkgs, nixos-wsl, nix-stable, flake-parts, ... }@inputs: flake-parts.lib.mkFlake { inherit inputs; } { debug = true; systems = [ "x86_64-linux" ]; perSystem = { config, ... }: { }; flake = { homeConfigurations = { nixd = inputs.home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; modules = [ { home = { stateVersion = "24.05"; username = "nixd"; homeDirectory = "/dev/null"; }; } ( { pkgs, ... }: { wayland.windowManager.hyprland.enable = true; home = { packages = with pkgs; [ nixd ]; }; } ) ]; }; }; nixosConfigurations = { nixd = nixpkgs.lib.nixosSystem { }; desktopIso = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ ( { pkgs, modulesPath, lib, ... }: { imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ]; boot.kernelPackages = pkgs.linuxPackages_latest; boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" "ext4" ]; } ) ]; }; nix-desktop-evo4b5 = nixpkgs.lib.nixosSystem rec { specialArgs = { inherit inputs; stable = import nix-stable { inherit system; config = { allowUnfree = true; }; }; }; system = "x86_64-linux"; modules = [ ( { pkgs, ... }: { _module.args = { unstable = pkgs; }; } ) ./boxes/desktop/configuration.nix inputs.home-manager.nixosModules.default inputs.nix-index-database.nixosModules.nix-index { programs.nix-index-database.comma.enable = true; } ]; }; arm-laptop-evo4b5 = nix-stable.lib.nixosSystem rec { system = "aarch64-linux"; specialArgs = { inputs = inputs // { nixpkgs = nix-stable; home-manager = inputs.home-manager-stable; stylix = inputs.stylix-stable; }; unstable = import nixpkgs { inherit system; config = { allowUnfree = true; }; }; }; modules = [ ( { pkgs, ... }: { _module.args = { stable = pkgs; }; } ) ./boxes/wsl/configuration.nix inputs.home-manager-stable.nixosModules.default nixos-wsl.nixosModules.wsl ]; }; }; # nixosConfigurations.default = nixpkgs.lib.nixosSystem { # specialArgs = {inherit inputs;}; # modules = [ # ./boxes/desktop/configuration.nix # inputs.home-manager.nixosModules.default # ]; # }; # cpkg = forAllSystems(system: import ./customPackages); }; }; }