repos / pgit

staticsitegeneratorforgit
git clone https://go.com

Triple oh  ·  2025-09-08

flake.nix

  1{
  2  description = "minimal test for nixos-qubes and xxx?";
  3
  4  inputs = {
  5    nixos-hardware.url = "github:NixOS/nixos-hardware";
  6
  7    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
  8    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
  9
 10    nix-index.url = "github:nix-community/nix-index-database";
 11    nix-index.inputs.nixpkgs.follows = "nixpkgs-unstable";
 12
 13    home-manager = {
 14      url = "github:nix-community/home-manager";
 15      inputs.nixpkgs.follows = "nixpkgs";
 16    };
 17
 18    nixos-qubes = {
 19      url = "github:CertainLach/nixos-qubes";
 20      inputs.nixpkgs.follows = "nixpkgs";
 21    };
 22  };
 23
 24  outputs = {
 25    self,
 26    nixpkgs,
 27    nix-index,
 28    home-manager,
 29    nixos-hardware,
 30    nixos-qubes,
 31    ...
 32  } @ inputs: let
 33    inherit (self) outputs;
 34
 35    stateVersion = "25.05";
 36
 37    pkgs = nixpkgs.legacyPackages.x86_64-linux;
 38    system = "x86_64-linux";
 39  in {
 40    nixosConfigurations = {
 41      nixos-qubes = nixpkgs.lib.nixosSystem {
 42        modules = [
 43          nixos-hardware.nixosModules.common-cpu-intel
 44          nixos-hardware.nixosModules.common-pc
 45          nixos-hardware.nixosModules.common-pc-ssd
 46
 47          ./clean-tmp.nix
 48
 49          inputs.nixos-qubes.nixosModules.default # inputs is interesting b/c it works both ways
 50          ./qubes.nix
 51        ];
 52
 53        specialArgs = {inherit inputs;};
 54      };
 55    };
 56
 57    homeConfigurations = {
 58      "username@nixos-qubes" = home-manager.lib.homeManagerConfiguration {
 59        pkgs = nixpkgs.legacyPackages.x86_64-linux;
 60        modules = [
 61          {
 62            home.stateVersion = "25.05";
 63            home.username = "olu";
 64            home.homeDirectory = "/home/username";
 65            # the stuff that's actually sposed to be here
 66          }
 67        ];
 68        # extraSpecialArgs = {inherit inputs;};
 69      };
 70    };
 71
 72    packages.x86_64-linux.default = self.nixosConfigurations.nixos-qubes.config.system.build.isoImage;
 73
 74    # formatter checks hydraJobs
 75
 76    devShells.${system}.default = pkgs.mkShell {
 77      nativeBuildInputs = with pkgs; [
 78        mc
 79        emacs
 80        janet babashka
 81        ripgrep
 82        busybox
 83        git
 84        gnumake
 85        just
 86        nix-output-monitor
 87        home-manager.packages.${system}.default
 88        lazygit
 89        alejandra
 90        nixos-install-tools
 91        # daktari (py), lmt (go), bilibop? (go)
 92        screen
 93        tmux
 94        byobu # !! learn this
 95        ##disko
 96        ##factor
 97        ##debooostrap,etc
 98      ];
 99    };
100  };
101}