{ description = "Panoptes flake config"; outputs = { self, ... }@args: let inherit (self) outputs; nixosSystem = args.nixpkgs.lib.nixosSystem; userSettings = rec { username = "panoptes"; gitUserName = "John Lancaster"; gitUserEmail = "32917998+jsl12@users.noreply.github.com"; # gitUserEmail = "asdfasdf@asdf.com"; }; systemSettings = rec { hostName = "panoptes-nix"; stateVersion = "24.11"; system = "x86_64-linux"; timeZone = "America/Chicago"; locale = "en_US.UTF-8"; }; pkgs = args.nixpkgs.legacyPackages.${systemSettings.system}; pkgs-stable = args.nixpkgs-stable.legacyPackages.${systemSettings.system}; in { nixosModules.default = ./nixosModules; nixosConfigurations.${systemSettings.hostName} = nixosSystem { system = systemSettings.system; specialArgs = { inherit systemSettings; inherit userSettings; }; modules = [ (args.nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix") # ./configuration.nix # > Our main nixos configuration file < outputs.nixosModules.default args.home-manager.nixosModules.default args.vscode-server.nixosModules.default ({ ... }: { services.vscode-server.enable = true; }) ]; }; homeConfigurations = { useGlobalPkgs = true; ${userSettings.username} = args.home-manager.lib.homeManagerConfiguration { inherit pkgs; extraSpecialArgs = { inherit systemSettings; inherit userSettings; }; modules = [ ./home.nix ]; }; }; }; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; vscode-server.url = "github:nix-community/nixos-vscode-server"; }; }